2013-04-12 04:06:46 +00:00
|
|
|
// RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | llvm-readobj -r | FileCheck %s
|
2011-08-04 00:38:45 +00:00
|
|
|
|
|
|
|
// Tests that relocation value fits in the provided size
|
|
|
|
// Original bug http://llvm.org/bugs/show_bug.cgi?id=10568
|
2011-08-04 13:00:24 +00:00
|
|
|
|
2011-08-04 00:38:45 +00:00
|
|
|
L: movq $(L + 2147483648),%rax
|
|
|
|
|
2011-08-04 13:00:24 +00:00
|
|
|
|
2013-04-12 04:06:46 +00:00
|
|
|
// CHECK: Relocations [
|
2013-05-30 03:05:14 +00:00
|
|
|
// CHECK-NEXT: Section ({{[0-9]+}}) .rela.text {
|
2013-04-12 04:06:46 +00:00
|
|
|
// CHECK-NEXT: 0x3 R_X86_64_32S {{[^ ]+}} 0x80000000
|
|
|
|
// CHECK-NEXT: }
|
|
|
|
// CHECK-NEXT: ]
|