[llvm-commits] [llvm] r117115 - /llvm/trunk/test/MC/ARM/neon-mul-encoding.ll
Owen Anderson
resistor at mac.com
Fri Oct 22 10:57:37 PDT 2010
Author: resistor
Date: Fri Oct 22 12:57:37 2010
New Revision: 117115
URL: http://llvm.org/viewvc/llvm-project?rev=117115&view=rev
Log:
Add testscases for encoding of NEON vdqmull.
Modified:
llvm/trunk/test/MC/ARM/neon-mul-encoding.ll
Modified: llvm/trunk/test/MC/ARM/neon-mul-encoding.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/neon-mul-encoding.ll?rev=117115&r1=117114&r2=117115&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/neon-mul-encoding.ll (original)
+++ llvm/trunk/test/MC/ARM/neon-mul-encoding.ll Fri Oct 22 12:57:37 2010
@@ -253,3 +253,24 @@
%tmp3 = call <8 x i16> @llvm.arm.neon.vmullp.v8i16(<8 x i8> %tmp1, <8 x i8> %tmp2)
ret <8 x i16> %tmp3
}
+
+declare <4 x i32> @llvm.arm.neon.vqdmull.v4i32(<4 x i16>, <4 x i16>) nounwind readnone
+declare <2 x i64> @llvm.arm.neon.vqdmull.v2i64(<2 x i32>, <2 x i32>) nounwind readnone
+
+; CHECK: vqdmull_4xi16
+define <4 x i32> @vqdmull_4xi16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
+ %tmp1 = load <4 x i16>* %A
+ %tmp2 = load <4 x i16>* %B
+; CHECK: vqdmull.s16 q8, d16, d17 @ encoding: [0xa1,0x0d,0xd0,0xf2]
+ %tmp3 = call <4 x i32> @llvm.arm.neon.vqdmull.v4i32(<4 x i16> %tmp1, <4 x i16> %tmp2)
+ ret <4 x i32> %tmp3
+}
+
+; CHECK: vqdmull_2xi32
+define <2 x i64> @vqdmull_2xi32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
+ %tmp1 = load <2 x i32>* %A
+ %tmp2 = load <2 x i32>* %B
+; CHECK: vqdmull.s32 q8, d16, d17 @ encoding: [0xa1,0x0d,0xe0,0xf2]
+ %tmp3 = call <2 x i64> @llvm.arm.neon.vqdmull.v2i64(<2 x i32> %tmp1, <2 x i32> %tmp2)
+ ret <2 x i64> %tmp3
+}
More information about the llvm-commits
mailing list