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