[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / got-relaxed-i386.s
blob465b6fa07f6f4f7b8d532f467ca0801847f89537
1 // RUN: llvm-mc -filetype=obj -triple i386-pc-linux %s -o - | llvm-readobj -r - | FileCheck %s
2 // RUN: llvm-mc -filetype=obj -relax-relocations=false -triple i386-pc-linux %s -o - | llvm-readobj -r - | FileCheck --check-prefix=OLD %s
4 movl mov@GOT(%ebx), %eax
5 mull mul@GOT(%ebx)
6 .long long@GOT
8 // CHECK: Relocations [
9 // CHECK-NEXT: Section ({{.*}}) .rel.text {
10 // CHECK-NEXT: R_386_GOT32X mov
11 // CHECK-NEXT: R_386_GOT32 mul
12 // CHECK-NEXT: R_386_GOT32 long
13 // CHECK-NEXT: }
14 // CHECK-NEXT: ]
16 // OLD: Relocations [
17 // OLD-NEXT: Section ({{.*}}) .rel.text {
18 // OLD-NEXT: R_386_GOT32 mov
19 // OLD-NEXT: R_386_GOT32 mul
20 // OLD-NEXT: R_386_GOT32 long
21 // OLD-NEXT: }
22 // OLD-NEXT: ]