[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / expand-var.s
blob2cd27ec16c77d6d2737bcd451b68aa99416ece9c
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj -r --symbols - | FileCheck %s
3 // CHECK: Section {{.*}} .rela.text {
4 // CHECK-NEXT: 0x0 R_X86_64_32 d 0x0
5 // CHECK-NEXT: }
7 // CHECK: Symbol {
8 // CHECK: Name: d2
9 // CHECK-NEXT: Value: 0x2A
12 b = a
13 c = a
14 d = a
15 .weak d
16 .long d + (b - c)
19 a2:
20 .weak b2
21 b2 = a2
22 c2 = b2 - a2
23 d2 = b2 - a2 + 42