[llvm-commits] [llvm] r117173 - /llvm/trunk/test/MC/ARM/neon-mul-accum-encoding.ll

Owen Anderson resistor at mac.com
Fri Oct 22 16:08:48 PDT 2010


Author: resistor
Date: Fri Oct 22 18:08:47 2010
New Revision: 117173

URL: http://llvm.org/viewvc/llvm-project?rev=117173&view=rev
Log:
Add tests for NEON encoding of vqdmlsl.

Modified:
    llvm/trunk/test/MC/ARM/neon-mul-accum-encoding.ll

Modified: llvm/trunk/test/MC/ARM/neon-mul-accum-encoding.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/neon-mul-accum-encoding.ll?rev=117173&r1=117172&r2=117173&view=diff
==============================================================================
--- llvm/trunk/test/MC/ARM/neon-mul-accum-encoding.ll (original)
+++ llvm/trunk/test/MC/ARM/neon-mul-accum-encoding.ll Fri Oct 22 18:08:47 2010
@@ -354,3 +354,26 @@
 	%tmp7 = sub <2 x i64> %tmp1, %tmp6
 	ret <2 x i64> %tmp7
 }
+
+declare <4 x i32>  @llvm.arm.neon.vqdmlsl.v4i32(<4 x i32>, <4 x i16>, <4 x i16>) nounwind readnone
+declare <2 x i64>  @llvm.arm.neon.vqdmlsl.v2i64(<2 x i64>, <2 x i32>, <2 x i32>) nounwind readnone
+
+; CHECK: vqdmlsl_4xi16
+define <4 x i32> @vqdmlsl_4xi16(<4 x i32>* %A, <4 x i16>* %B, <4 x i16>* %C) nounwind {
+	%tmp1 = load <4 x i32>* %A
+	%tmp2 = load <4 x i16>* %B
+	%tmp3 = load <4 x i16>* %C
+; CHECK: vqdmlsl.s16	q8, d19, d18    @ encoding: [0xa2,0x0b,0xd3,0xf2]
+	%tmp4 = call <4 x i32> @llvm.arm.neon.vqdmlsl.v4i32(<4 x i32> %tmp1, <4 x i16> %tmp2, <4 x i16> %tmp3)
+	ret <4 x i32> %tmp4
+}
+
+; CHECK: vqdmlsl_2xi32
+define <2 x i64> @vqdmlsl_2xi32(<2 x i64>* %A, <2 x i32>* %B, <2 x i32>* %C) nounwind {
+	%tmp1 = load <2 x i64>* %A
+	%tmp2 = load <2 x i32>* %B
+	%tmp3 = load <2 x i32>* %C
+; CHECK: vqdmlsl.s32	q8, d19, d18    @ encoding: [0xa2,0x0b,0xe3,0xf2]
+	%tmp4 = call <2 x i64> @llvm.arm.neon.vqdmlsl.v2i64(<2 x i64> %tmp1, <2 x i32> %tmp2, <2 x i32> %tmp3)
+	ret <2 x i64> %tmp4
+}





More information about the llvm-commits mailing list