[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / ARM / mapping-within-section.s
blob1f15def4eafa1061c2aa8da5b76ba423900e60c6
1 @ RUN: llvm-mc -triple=armv7-linux-gnueabi -filetype=obj < %s | llvm-objdump -t - | FileCheck %s
3 .text
4 @ $a at 0x0000
5 add r0, r0, r0
6 @ $d at 0x0004
7 .word 42
8 .thumb
9 @ $t at 0x0008
10 adds r0, r0, r0
11 adds r0, r0, r0
12 @ $a at 0x000c
13 .arm
14 add r0, r0, r0
15 @ $t at 0x0010
16 .thumb
17 adds r0, r0, r0
18 @ $d at 0x0012
19 .ascii "012"
20 .byte 1
21 .byte 2
22 .byte 3
23 @ $a at 0x0018
24 .arm
25 add r0, r0, r0
27 @ CHECK: 00000000 l .text 00000000 $a
28 @ CHECK-NEXT: 00000004 l .text 00000000 $d
29 @ CHECK-NEXT: 00000008 l .text 00000000 $t
30 @ CHECK-NEXT: 0000000c l .text 00000000 $a
31 @ CHECK-NEXT: 00000010 l .text 00000000 $t
32 @ CHECK-NEXT: 00000012 l .text 00000000 $d
33 @ CHECK-NEXT: 00000018 l .text 00000000 $a