summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/vstlane.ll
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-10 22:13:32 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-10 22:13:32 +0000
commit9375d27460f1ee184d53a55dd105393a0b298c1d (patch)
treef0d4036fde59b9c6e1fb03edcbe412f07ecc3298 /llvm/test/CodeGen/ARM/vstlane.ll
parente1d3322111a72286757279ea8f54b7cb8e715e2b (diff)
downloadbcm5719-llvm-9375d27460f1ee184d53a55dd105393a0b298c1d.tar.gz
bcm5719-llvm-9375d27460f1ee184d53a55dd105393a0b298c1d.zip
Add float patterns for Neon vld1-lane/dup and vst1-lane operations.
llvm-svn: 121583
Diffstat (limited to 'llvm/test/CodeGen/ARM/vstlane.ll')
-rw-r--r--llvm/test/CodeGen/ARM/vstlane.ll18
1 files changed, 18 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/vstlane.ll b/llvm/test/CodeGen/ARM/vstlane.ll
index c5387e04bdf..9aa8d59a289 100644
--- a/llvm/test/CodeGen/ARM/vstlane.ll
+++ b/llvm/test/CodeGen/ARM/vstlane.ll
@@ -30,6 +30,15 @@ define void @vst1lanei32(i32* %A, <2 x i32>* %B) nounwind {
ret void
}
+define void @vst1lanef(float* %A, <2 x float>* %B) nounwind {
+;CHECK: vst1lanef:
+;CHECK: vst1.32 {d16[1]}, [r0]
+ %tmp1 = load <2 x float>* %B
+ %tmp2 = extractelement <2 x float> %tmp1, i32 1
+ store float %tmp2, float* %A
+ ret void
+}
+
define void @vst1laneQi8(i8* %A, <16 x i8>* %B) nounwind {
;CHECK: vst1laneQi8:
;CHECK: vst1.8 {d17[1]}, [r0]
@@ -57,6 +66,15 @@ define void @vst1laneQi32(i32* %A, <4 x i32>* %B) nounwind {
ret void
}
+define void @vst1laneQf(float* %A, <4 x float>* %B) nounwind {
+;CHECK: vst1laneQf:
+;CHECK: vst1.32 {d17[1]}, [r0]
+ %tmp1 = load <4 x float>* %B
+ %tmp2 = extractelement <4 x float> %tmp1, i32 3
+ store float %tmp2, float* %A
+ ret void
+}
+
define void @vst2lanei8(i8* %A, <8 x i8>* %B) nounwind {
;CHECK: vst2lanei8:
;Check the alignment value. Max for this instruction is 16 bits:
OpenPOWER on IntegriCloud