1// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r - | FileCheck %s 2 3// Tests that relocation value fits in the provided size 4// Original bug http://llvm.org/bugs/show_bug.cgi?id=10568 5 6L: movq $(L + 2147483648),%rax 7 8 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: ] 14