Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ARM / thumb_set.s
blob4bb7b599aaf11617d74c78763492ef0c84b6cec7
1 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readelf -s - | FileCheck %s
3 @ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s \
4 @ RUN: | FileCheck --check-prefix=ASM %s
6 @ CHECK: Num: Value Size Type Bind Vis Ndx Name
7 @ CHECK-NEXT: 0: 00000000 0 NOTYPE LOCAL DEFAULT UND
8 @ CHECK-NEXT: 1: 00000000 0 FUNC LOCAL DEFAULT 2 arm_func
9 @ CHECK-NEXT: 2: 00000000 0 NOTYPE LOCAL DEFAULT 2 $a.0
10 @ CHECK-NEXT: 3: 00000001 0 FUNC LOCAL DEFAULT 2 alias_arm_func
11 @ CHECK-NEXT: 4: 00000001 0 FUNC LOCAL DEFAULT 2 alias_arm_func2
12 @ CHECK-NEXT: 5: 00000001 0 FUNC LOCAL DEFAULT 2 alias_arm_func3
13 @ CHECK-NEXT: 6: 00000005 0 FUNC LOCAL DEFAULT 2 thumb_func
14 @ CHECK-NEXT: 7: 00000004 0 NOTYPE LOCAL DEFAULT 2 $t.1
15 @ CHECK-NEXT: 8: 00000005 0 FUNC LOCAL DEFAULT 2 alias_thumb_func
16 @ CHECK-NEXT: 9: 5eed1e55 0 FUNC LOCAL DEFAULT ABS seedless
17 @ CHECK-NEXT: 10: e665a1ad 0 FUNC LOCAL DEFAULT ABS eggsalad
18 @ CHECK-NEXT: 11: face1e55 0 FUNC LOCAL DEFAULT ABS faceless
19 @ CHECK-NEXT: 12: 00000000 0 OBJECT LOCAL DEFAULT 3 alias_undefined_data
20 @ CHECK-NEXT: 13: 00000000 0 OBJECT LOCAL DEFAULT 3 badblood
21 @ CHECK-NEXT: 14: 00000004 0 OBJECT LOCAL DEFAULT 3 bedazzle
22 @ CHECK-NEXT: 15: 00000005 0 FUNC LOCAL DEFAULT 3 alias_defined_data
23 @ CHECK-NEXT: 16: 00000007 0 FUNC LOCAL DEFAULT 2 alpha
24 @ CHECK-NEXT: 17: 00000007 0 FUNC LOCAL DEFAULT 2 beta
26 .syntax unified
28 .arm
30 .type arm_func,%function
31 arm_func:
32 nop
34 .thumb_set alias_arm_func, arm_func
36 alias_arm_func2 = alias_arm_func
37 alias_arm_func3 = alias_arm_func2
39 @ ASM: .thumb_set alias_arm_func, arm_func
41 .thumb
43 .type thumb_func,%function
44 .thumb_func
45 thumb_func:
46 nop
48 .thumb_set alias_thumb_func, thumb_func
50 .thumb_set seedless, 0x5eed1e55
51 .thumb_set eggsalad, seedless + 0x87788358
52 .thumb_set faceless, ~eggsalad + 0xe133c002
54 .thumb_set alias_undefined_data, badblood
56 .data
58 .type badblood,%object
59 badblood:
60 .long 0xbadb100d
62 .type bedazzle,%object
63 bedazzle:
64 .long 0xbeda221e
66 .text
67 .thumb
69 .thumb_set alias_defined_data, bedazzle
71 .type alpha,%function
72 alpha:
73 nop
75 .type beta,%function
77 .thumb_set beta, alpha