[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / x86-64-reloc-error.s
blob559f8ece0ff89e63109513a77f7feb901029d118
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %S/Inputs/x86-64-reloc-error.s -o %t1.o
3 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t
4 // RUN: not ld.lld -shared %t1.o %t -o /dev/null 2>&1 | FileCheck %s
6 movl $big, %edx
7 movq $foo - 0x1000000000000, %rdx
9 # CHECK: {{.*}}:(.text+0x1): relocation R_X86_64_32 out of range: 68719476736 is not in [0, 4294967295]; references 'big'
10 # CHECK-NEXT: >>> defined in {{.*}}1.o
11 # CHECK: {{.*}}:(.text+0x8): relocation R_X86_64_32S out of range: -281474976710656 is not in [-2147483648, 2147483647]; references 'foo'
12 # CHECK-NEXT: >>> defined in {{.*}}1.o