[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / ppc64-reloc-addr16-err.s
blobfe225b5013da1b212762053221322856a5b157d4
1 # REQUIRES: ppc
2 # RUN: llvm-mc -filetype=obj -triple=ppc64le --defsym HI=1 %s -o %thi.o
3 # RUN: ld.lld %thi.o --defsym=a=0x7fffffff -o /dev/null
4 # RUN: not ld.lld %thi.o --defsym=a=0x80000000 -o /dev/null
5 # RUN: ld.lld %thi.o --defsym=a=0xffffffff80000000 -o /dev/null
6 # RUN: not ld.lld %thi.o --defsym=a=0xffffffff7fffffff -o /dev/null
8 # RUN: llvm-mc -filetype=obj -triple=ppc64le --defsym HA=1 %s -o %tha.o
9 # RUN: ld.lld %tha.o --defsym=a=0x7fff7fff -o /dev/null
10 # RUN: not ld.lld %tha.o --defsym=a=0x7fff8000 -o /dev/null
11 # RUN: ld.lld %tha.o --defsym=a=0xffffffff7fff8000 -o /dev/null
12 # RUN: not ld.lld %tha.o --defsym=a=0xffffffff7fff7fff -o /dev/null
14 .ifdef HI
15 lis 4, a@h # R_PPC64_ADDR16_HI
16 .endif
18 .ifdef HA
19 lis 4, a@ha # R_PPC64_ADDR16_HA
20 .endif
22 lis 4, a@high # R_PPC64_ADDR16_HIGH