[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / ARM / thumb_set.s
blobf3ee0f4a96204bcd5b8a11818d21448c3d4161bb
1 @ RUN: llvm-mc -triple armv7-eabi -filetype obj -o - %s | llvm-readobj --symbols \
2 @ RUN: | FileCheck %s
4 @ RUN: llvm-mc -triple armv7-eabi -filetype asm -o - %s \
5 @ RUN: | FileCheck --check-prefix=ASM %s
7 .syntax unified
9 .arm
11 .type arm_func,%function
12 arm_func:
13 nop
15 .thumb_set alias_arm_func, arm_func
17 alias_arm_func2 = alias_arm_func
18 alias_arm_func3 = alias_arm_func2
20 @ ASM: .thumb_set alias_arm_func, arm_func
22 .thumb
24 .type thumb_func,%function
25 .thumb_func
26 thumb_func:
27 nop
29 .thumb_set alias_thumb_func, thumb_func
31 .thumb_set seedless, 0x5eed1e55
32 .thumb_set eggsalad, seedless + 0x87788358
33 .thumb_set faceless, ~eggsalad + 0xe133c002
35 .thumb_set alias_undefined_data, badblood
37 .data
39 .type badblood,%object
40 badblood:
41 .long 0xbadb100d
43 .type bedazzle,%object
44 bedazzle:
45 .long 0xbeda221e
47 .text
48 .thumb
50 .thumb_set alias_defined_data, bedazzle
52 .type alpha,%function
53 alpha:
54 nop
56 .type beta,%function
58 .thumb_set beta, alpha
60 @ CHECK: Symbol {
61 @ CHECK: Name: alias_arm_func
62 @ CHECK: Value: 0x1
63 @ CHECK: Type: Function
64 @ CHECK: }
66 @ CHECK: Symbol {
67 @ CHECK: Name: alias_arm_func2
68 @ CHECK: Value: 0x1
69 @ CHECK: Type: Function
70 @ CHECK: }
72 @ CHECK: Symbol {
73 @ CHECK: Name: alias_arm_func3
74 @ CHECK: Value: 0x1
75 @ CHECK: Type: Function
76 @ CHECK: }
78 @ CHECK: Symbol {
79 @ CHECK: Name: alias_defined_data
80 @ CHECK: Value: 0x5
81 @ CHECK: Type: Function
82 @ CHECK: }
84 @ CHECK: Symbol {
85 @ CHECK: Name: alias_thumb_func
86 @ CHECK: Value: 0x5
87 @ CHECK: Type: Function
88 @ CHECK: }
90 @ CHECK: Symbol {
91 @ CHECK: Name: alias_undefined_data
92 @ CHECK: Value: 0x0
93 @ CHECK: Type: Object
94 @ CHECK: }
96 @ CHECK: Symbol {
97 @ CHECK: Name: alpha
98 @ CHECK: Value: 0x7
99 @ CHECK: Type: Function
100 @ CHECK: }
102 @ CHECK: Symbol {
103 @ CHECK: Name: arm_func
104 @ CHECK: Value: 0x0
105 @ CHECK: Type: Function
106 @ CHECK: }
108 @ CHECK: Symbol {
109 @ CHECK: Name: badblood
110 @ CHECK-NEXT: Value: 0x0
111 @ CHECK-NEXT: Size: 0
112 @ CHECK-NEXT: Binding: Local
113 @ CHECK-NEXT: Type: Object
114 @ CHECK-NEXT: Other: 0
115 @ CHECK-NEXT: Section: .data
116 @ CHECK-NEXT: }
118 @ CHECK: Symbol {
119 @ CHECK: Name: bedazzle
120 @ CHECK: Value: 0x4
121 @ CHECK: Type: Object
122 @ CHECK: }
124 @ CHECK: Symbol {
125 @ CHECK: Name: beta
126 @ CHECK: Value: 0x7
127 @ CHECK: Type: Function
128 @ CHECK: }
130 @ CHECK: Symbol {
131 @ CHECK: Name: eggsalad
132 @ CHECK: Value: 0xE665A1AD
133 @ CHECK: Type: Function
134 @ CHECK: }
136 @ CHECK: Symbol {
137 @ CHECK: Name: faceless
138 @ CHECK: Value: 0xFACE1E55
139 @ CHECK: Type: Function
140 @ CHECK: }
142 @ CHECK: Symbol {
143 @ CHECK: Name: seedless
144 @ CHECK: Value: 0x5EED1E55
145 @ CHECK: Type: Function
146 @ CHECK: }
148 @ CHECK: Symbol {
149 @ CHECK: Name: thumb_func
150 @ CHECK: Value: 0x5
151 @ CHECK: Type: Function
152 @ CHECK: }