blob: 9d6eba85301eb986f6c2f5c5754a133e51f768a2 [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}