[llvm] r213794 - [NVPTX] Add some extra tests for mul.wide to test non-power-of-two source types
Justin Holewinski
jholewinski at nvidia.com
Wed Jul 23 13:23:49 PDT 2014
Author: jholewinski
Date: Wed Jul 23 15:23:49 2014
New Revision: 213794
URL: http://llvm.org/viewvc/llvm-project?rev=213794&view=rev
Log:
[NVPTX] Add some extra tests for mul.wide to test non-power-of-two source types
Modified:
llvm/trunk/test/CodeGen/NVPTX/mulwide.ll
Modified: llvm/trunk/test/CodeGen/NVPTX/mulwide.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/NVPTX/mulwide.ll?rev=213794&r1=213793&r2=213794&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/NVPTX/mulwide.ll (original)
+++ llvm/trunk/test/CodeGen/NVPTX/mulwide.ll Wed Jul 23 15:23:49 2014
@@ -66,3 +66,25 @@ define i64 @mulwideu32(i32 %a, i32 %b) {
%val2 = mul i64 %val0, %val1
ret i64 %val2
}
+
+; OPT-LABEL: @mulwideu7
+; NOOPT-LABEL: @mulwideu7
+define i64 @mulwideu7(i7 %a, i7 %b) {
+; OPT: mul.wide.u32
+; NOOPT: mul.lo.s64
+ %val0 = zext i7 %a to i64
+ %val1 = zext i7 %b to i64
+ %val2 = mul i64 %val0, %val1
+ ret i64 %val2
+}
+
+; OPT-LABEL: @mulwides7
+; NOOPT-LABEL: @mulwides7
+define i64 @mulwides7(i7 %a, i7 %b) {
+; OPT: mul.wide.s32
+; NOOPT: mul.lo.s64
+ %val0 = sext i7 %a to i64
+ %val1 = sext i7 %b to i64
+ %val2 = mul i64 %val0, %val1
+ ret i64 %val2
+}
More information about the llvm-commits
mailing list