diff options
author | Simon Tatham <simon.tatham@arm.com> | 2024-09-10 12:38:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-10 12:38:32 +0100 |
commit | daf208598b06a0b8b3dc3c30b023334182bdf170 (patch) | |
tree | 2266b3179c450eebe6683a56d2d0774b05e0fbf6 /clang/test/CodeGenObjC/objc-read-weak-byref.m | |
parent | 46870175c5425997154245cfa5b1bc31c29bdba4 (diff) | |
download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 |
In AArch64, the endianness of instruction encodings is always little,
whereas the endianness of data swaps between LE and BE modes. So
getImplicitAddend must use the right one of read32() and read32le(), for
data and code respectively. It was using read32() throughout, causing
instructions to be read as big-endian in BE mode, getting the wrong
addend.
Fixed, and updated the existing test to check both endiannesses. The
expected results for data must be byte-swapped, but the ones for code
need no adjustment.
Diffstat (limited to 'clang/test/CodeGenObjC/objc-read-weak-byref.m')
0 files changed, 0 insertions, 0 deletions