Open Quuxplusone opened 10 years ago
Bugzilla Link | PR18482 |
Status | NEW |
Importance | P normal |
Reported by | Jakob Stoklund Olesen (stoklund@2pi.dk) |
Reported on | 2014-01-14 21:29:50 -0800 |
Last modified on | 2014-01-20 20:06:26 -0800 |
Version | trunk |
Hardware | Sun All |
CC | geek4civic@gmail.com, llvm-bugs@lists.llvm.org, rafael@espindo.la, rnk@google.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Yep. What's the usual way to do unaligned loads for something on SPARC?
The code generator does the right thing if you give it an unaligned IR load. You can use a 2-byte memcpy or a pointer to a packed struct with a UTF16 member.
You can probable;y reproduce on Intel if you compile with -fsanitize=alignment and make sure the test case is passing an unaligned string.