Open Quuxplusone opened 3 years ago
Bugzilla Link | PR51621 |
Status | NEW |
Importance | P enhancement |
Reported by | Sami Liedes (sami.liedes@iki.fi) |
Reported on | 2021-08-25 06:26:57 -0700 |
Last modified on | 2021-08-25 06:43:02 -0700 |
Version | trunk |
Hardware | PC Linux |
CC | david.green@arm.com, llvm-bugs@lists.llvm.org, smithp352@googlemail.com, Ties.Stuij@arm.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The default architecture for Arm is very old now, and you really have to
specify something newer. This is for -march=armv7-a, which is inline with what
I would expect:
https://godbolt.org/z/qnWrzGKMs
read_unaligned_memcpy_bswap_32(unsigned char const*, int):
ldr r0, [r0, r1]
rev r0, r0
bx lr
read_unaligned_shift_add_32(unsigned char const*, int):
ldr r0, [r0, r1]
rev r0, r0
bx lr
Ah, I see. That makes sense. Thanks!