diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-07 22:36:50 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-08-07 22:36:50 +0000 |
commit | 32a1b257813e133ba1146289a9aa43ed8ad9c00d (patch) | |
tree | 853bf7e19de6cb4e70f503896289986eb2c34221 /test | |
parent | fcc716352b893b45da2d6aa9d7afff8ba1ad0527 (diff) | |
download | external_llvm-32a1b257813e133ba1146289a9aa43ed8ad9c00d.zip external_llvm-32a1b257813e133ba1146289a9aa43ed8ad9c00d.tar.gz external_llvm-32a1b257813e133ba1146289a9aa43ed8ad9c00d.tar.bz2 |
2 more vdup.32 cases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78419 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/ARM/vdup.ll | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/vdup.ll b/test/CodeGen/ARM/vdup.ll index 1c0887a..37f8dcb 100644 --- a/test/CodeGen/ARM/vdup.ll +++ b/test/CodeGen/ARM/vdup.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon > %t ; RUN: grep vdup.8 %t | count 4 ; RUN: grep vdup.16 %t | count 4 -; RUN: grep vdup.32 %t | count 8 +; RUN: grep vdup.32 %t | count 10 define <8 x i8> @v_dup8(i8 %A) nounwind { %tmp1 = insertelement <8 x i8> zeroinitializer, i8 %A, i32 0 @@ -132,3 +132,17 @@ define <4 x float> @v_shuffledupQfloat(float %A) nounwind { %tmp2 = shufflevector <4 x float> %tmp1, <4 x float> undef, <4 x i32> zeroinitializer ret <4 x float> %tmp2 } + +define <2 x float> @v_shuffledupfloat2(float* %A) nounwind { + %tmp0 = load float* %A + %tmp1 = insertelement <2 x float> undef, float %tmp0, i32 0 + %tmp2 = shufflevector <2 x float> %tmp1, <2 x float> undef, <2 x i32> zeroinitializer + ret <2 x float> %tmp2 +} + +define <4 x float> @v_shuffledupQfloat2(float* %A) nounwind { + %tmp0 = load float* %A + %tmp1 = insertelement <4 x float> undef, float %tmp0, i32 0 + %tmp2 = shufflevector <4 x float> %tmp1, <4 x float> undef, <4 x i32> zeroinitializer + ret <4 x float> %tmp2 +} |