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