]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/MC/ELF/x86_64-reloc-sizetest.s
Vendor import of llvm tags/RELEASE_33/final r183502 (effectively, 3.3
[FreeBSD/FreeBSD.git] / test / MC / ELF / x86_64-reloc-sizetest.s
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
6 L: movq $(L + 2147483648),%rax
7
8
9 // CHECK:      Relocations [
10 // CHECK-NEXT:   Section ({{[0-9]+}}) .text {
11 // CHECK-NEXT:     0x3 R_X86_64_32S {{[^ ]+}} 0x80000000
12 // CHECK-NEXT:   }
13 // CHECK-NEXT: ]