Fix the bitwidth of the remaining fields.
[oota-llvm.git] / test / MC / ELF / x86_64-reloc-sizetest.s
1 // RUN: llvm-mc -triple x86_64-linux-gnu -filetype=obj %s | elf-dump | 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
6 L: movq $(L + 2147483648),%rax
7
8
9 // CHECK:          Relocation 0
10 // CHECK-NEXT:     ('r_offset', 0x0000000000000003)
11 // CHECK-NEXT:     ('r_sym'
12 // CHECK-NEXT:     ('r_type', 0x0000000b)
13 // CHECK-NEXT:     ('r_addend', 0x0000000080000000