[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / MC / ELF / x86_64-reloc-sizetest.s
blob10c13123e6507fe42d739e8ca4bce79e4a8a6331
1 // RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r | FileCheck %s
3 // Tests that relocation value fits in the provided size
4 // Original bug http://llvm.org/bugs/show_bug.cgi?id=10568
6 L: movq $(L + 2147483648),%rax
9 // CHECK: Relocations [
10 // CHECK-NEXT: Section ({{[0-9]+}}) .rela.text {
11 // CHECK-NEXT: 0x3 R_X86_64_32S {{[^ ]+}} 0x80000000
12 // CHECK-NEXT: }
13 // CHECK-NEXT: ]