xref: /llvm-project/llvm/test/CodeGen/ARM/2012-05-10-PreferVMOVtoVDUP32.ll (revision bed1c7f061aa12417aa081e334afdba45767b938)
1; RUN: llc -mtriple=arm-eabi -mcpu=swift %s -o - | FileCheck %s
2; <rdar://problem/10451892>
3
4define void @f(i32 %x, ptr %p) nounwind ssp {
5entry:
6; CHECK-NOT: vdup.32
7  %vecinit.i = insertelement <2 x i32> undef, i32 %x, i32 0
8  %vecinit1.i = insertelement <2 x i32> %vecinit.i, i32 %x, i32 1
9  tail call void @llvm.arm.neon.vst1.p0.v2i32(ptr %p, <2 x i32> %vecinit1.i, i32 4)
10  ret void
11}
12
13declare void @llvm.arm.neon.vst1.p0.v2i32(ptr, <2 x i32>, i32) nounwind
14