blob: 58687b9692463ef28379c2c564c0b9468240c890 [file] [log] [blame]
Evan Chengd831cda2009-12-08 23:06:22 +00001; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
2
Bob Wilson5afffae2009-12-18 01:03:29 +00003; Radar 7449043
Evan Chengd831cda2009-12-08 23:06:22 +00004%struct.int32x4_t = type { <4 x i32> }
5
Rafael Espindola1e819662010-06-17 15:18:27 +00006define void @t() nounwind {
Evan Chengd831cda2009-12-08 23:06:22 +00007entry:
8; CHECK: vmov.I64 q15, #0
Jakob Stoklund Olesen775c3e52011-04-19 00:14:43 +00009; CHECK: vmov.32 d30[0],
Bob Wilson7d247052010-10-08 06:15:13 +000010; CHECK: vmov q8, q15
Evan Chengd831cda2009-12-08 23:06:22 +000011 %tmp = alloca %struct.int32x4_t, align 16
12 call void asm sideeffect "vmov.I64 q15, #0\0Avmov.32 d30[0], $1\0Avmov ${0:q}, q15\0A", "=*w,r,~{d31},~{d30}"(%struct.int32x4_t* %tmp, i32 8192) nounwind
13 ret void
14}
Bob Wilson5afffae2009-12-18 01:03:29 +000015
16; Radar 7457110
17%struct.int32x2_t = type { <4 x i32> }
18
Rafael Espindola1e819662010-06-17 15:18:27 +000019define void @t2() nounwind {
Bob Wilson5afffae2009-12-18 01:03:29 +000020entry:
Bob Wilson7d247052010-10-08 06:15:13 +000021; CHECK: vmov d30, d16
Bob Wilson5afffae2009-12-18 01:03:29 +000022; CHECK: vmov.32 r0, d30[0]
23 %asmtmp2 = tail call i32 asm sideeffect "vmov d30, $1\0Avmov.32 $0, d30[0]\0A", "=r,w,~{d30}"(<2 x i32> undef) nounwind
24 ret void
25}
Eric Christopher9aaa02a2011-06-01 19:55:10 +000026
27; Radar 9306086
28
29%0 = type { <8 x i8>, <16 x i8>* }
30
31define hidden void @conv4_8_E() nounwind {
32entry:
33%asmtmp31 = call %0 asm "vld1.u8 {$0}, [$1, :128]!\0A", "=w,=r,1"(<16 x i8>* undef) nounwind
34unreachable
35}
Eric Christophercf714d42011-06-03 17:24:37 +000036
37; Radar 9037836 & 9119939
38
39define i32 @t3() nounwind {
40entry:
41tail call void asm sideeffect "flds s15, $0 \0A", "^Uv|m,~{s15}"(float 1.000000e+00) nounwind
42ret i32 0
43}
Eric Christopherce1ecf52011-06-03 20:44:52 +000044
45; Radar 9037836 & 9119939
46
47@k.2126 = internal unnamed_addr global float 1.000000e+00
48define i32 @t4() nounwind {
49entry:
50call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"(float* @k.2126) nounwind
51ret i32 0
52}
Eric Christopherec281c82011-06-03 22:09:12 +000053
54; Radar 9037836 & 9119939
55
56define i32 @t5() nounwind {
57entry:
58call void asm sideeffect "flds s15, $0 \0A", "*^Uvm,~{s15}"(float* @k.2126) nounwind
59ret i32 0
60}