1 ; RUN: llc -mtriple=arm-eabi -float-abi=soft -mattr=+neon,+v6t2 -no-integrated-as %s -o - \
5 %struct.int32x4_t = type { <4 x i32> }
7 define void @t() nounwind {
9 ; CHECK: vmov.I64 q15, #0
10 ; CHECK: vmov.32 d30[0],
12 %tmp = alloca %struct.int32x4_t, align 16
13 call void asm sideeffect "vmov.I64 q15, #0\0Avmov.32 d30[0], $1\0Avmov ${0:q}, q15\0A", "=*w,r,~{d31},~{d30}"(ptr elementtype(%struct.int32x4_t) %tmp, i32 8192) nounwind
18 %struct.int32x2_t = type { <4 x i32> }
20 define void @t2() nounwind {
22 ; CHECK: vmov d30, d16
23 ; CHECK: vmov.32 r0, d30[0]
24 %asmtmp2 = tail call i32 asm sideeffect "vmov d30, $1\0Avmov.32 $0, d30[0]\0A", "=r,w,~{d30}"(<2 x i32> undef) nounwind
30 %0 = type { <8 x i8>, ptr }
32 define hidden void @conv4_8_E() nounwind {
34 %asmtmp31 = call %0 asm "vld1.u8 {$0}, [$1:128]!\0A", "=w,=r,1"(ptr undef) nounwind
38 ; Radar 9037836 & 9119939
40 define i32 @t3() nounwind {
42 tail call void asm sideeffect "flds s15, $0 \0A", "^Uv|m,~{s15}"(float 1.000000e+00) nounwind
46 ; Radar 9037836 & 9119939
48 @k.2126 = internal unnamed_addr global float 1.000000e+00
49 define i32 @t4() nounwind {
51 call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"(ptr elementtype(float) @k.2126) nounwind
55 ; Radar 9037836 & 9119939
57 define i32 @t5() nounwind {
59 call void asm sideeffect "flds s15, $0 \0A", "*^Uvm,~{s15}"(ptr elementtype(float) @k.2126) nounwind
63 ; Radar 9307836 & 9119939
65 define float @t6(float %y) nounwind {
69 %0 = tail call float asm "flds s15, $0", "=x"() nounwind
73 ; Radar 9307836 & 9119939
75 define double @t7(double %y) nounwind {
79 %0 = tail call double asm "flds s15, $0", "=x"() nounwind
83 ; Radar 9307836 & 9119939
85 define float @t8(float %y) nounwind {
89 %0 = tail call float asm "flds s15, $0", "=t"() nounwind
93 ; Radar 9307836 & 9119939
95 define i32 @t9(i32 %r0) nounwind {
98 ; CHECK: movw r0, #27182
99 %0 = tail call i32 asm "movw $0, $1", "=r,j"(i32 27182) nounwind
105 define void @t10(ptr %f, i32 %g) nounwind {
108 ; CHECK: str r1, [r0]
109 %f.addr = alloca ptr, align 4
110 store ptr %f, ptr %f.addr, align 4
111 call void asm "str $1, $0", "=*Q,r"(ptr elementtype(ptr) %f.addr, i32 %g) nounwind
117 define <4 x i32> @t11(ptr %p) nounwind {
120 ; CHECK: vld1.s32 {d16[], d17[]}, [r0]
121 %0 = tail call <4 x i32> asm "vld1.s32 {${0:e}[], ${0:f}[]}, [$1]", "=w,r"(ptr %p) nounwind
127 define i32 @fn1() local_unnamed_addr nounwind {
130 ; CHECK: mov [[addr:r[0-9]+]], #5
131 ; CHECK: ldrh {{.*}}[[addr]]
132 %0 = tail call i32 asm "ldrh $0, $1", "=r,*Q"(ptr elementtype(i8) inttoptr (i32 5 to ptr)) nounwind