[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ELF / size.s
blob8d516350f73171857993d8fd83fc5745bf775095
1 // RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux < %s | llvm-readobj --symbols - | FileCheck %s
3 foo:
4 bar = .
5 .size foo, . - bar + 42
7 // CHECK: Symbol {
8 // CHECK: Name: foo
9 // CHECK-NEXT: Value: 0x0
10 // CHECK-NEXT: Size: 42
11 // CHECK-NEXT: Binding: Local
12 // CHECK-NEXT: Type: None
13 // CHECK-NEXT: Other: 0
14 // CHECK-NEXT: Section: .text
15 // CHECK-NEXT: }