aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/objc-read-weak-byref.m
diff options
context:
space:
mode:
authorSimon Tatham <simon.tatham@arm.com>2024-09-10 12:38:32 +0100
committerGitHub <noreply@github.com>2024-09-10 12:38:32 +0100
commitdaf208598b06a0b8b3dc3c30b023334182bdf170 (patch)
tree2266b3179c450eebe6683a56d2d0774b05e0fbf6 /clang/test/CodeGenObjC/objc-read-weak-byref.m
parent46870175c5425997154245cfa5b1bc31c29bdba4 (diff)
downloadllvm-main.zip
llvm-main.tar.gz
llvm-main.tar.bz2
[lld][AArch64] Fix getImplicitAddend in big-endian mode. (#107845)HEADmain
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