23 lines · plain
1// RUN: llvm-mc -filetype=obj -triple i386-pc-linux %s -o - | llvm-readobj -r - | FileCheck %s2// RUN: llvm-mc -filetype=obj -x86-relax-relocations=false -triple i386-pc-linux %s -o - | llvm-readobj -r - | FileCheck --check-prefix=OLD %s3 4 movl mov@GOT(%ebx), %eax5 mull mul@GOT(%ebx)6 .long long@GOT7 8// CHECK: Relocations [9// CHECK-NEXT: Section ({{.*}}) .rel.text {10// CHECK-NEXT: R_386_GOT32X mov11// CHECK-NEXT: R_386_GOT32 mul12// CHECK-NEXT: R_386_GOT32 long13// CHECK-NEXT: }14// CHECK-NEXT: ]15 16// OLD: Relocations [17// OLD-NEXT: Section ({{.*}}) .rel.text {18// OLD-NEXT: R_386_GOT32 mov19// OLD-NEXT: R_386_GOT32 mul20// OLD-NEXT: R_386_GOT32 long21// OLD-NEXT: }22// OLD-NEXT: ]23