[llvm] r356285 - [tests] Add a test for constexpr mask as requested in D57372
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 11:06:32 PDT 2019
Author: reames
Date: Fri Mar 15 11:06:32 2019
New Revision: 356285
URL: http://llvm.org/viewvc/llvm-project?rev=356285&view=rev
Log:
[tests] Add a test for constexpr mask as requested in D57372
Modified:
llvm/trunk/test/Transforms/InstCombine/masked_intrinsics.ll
Modified: llvm/trunk/test/Transforms/InstCombine/masked_intrinsics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/masked_intrinsics.ll?rev=356285&r1=356284&r2=356285&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/masked_intrinsics.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/masked_intrinsics.ll Fri Mar 15 11:06:32 2019
@@ -35,6 +35,15 @@ define <2 x double> @load_undefmask(<2 x
}
+define <2 x double> @load_cemask(<2 x double>* %ptr, <2 x double> %passthru) {
+; CHECK-LABEL: @load_cemask(
+; CHECK-NEXT: [[RES:%.*]] = call <2 x double> @llvm.masked.load.v2f64.p0v2f64(<2 x double>* [[PTR:%.*]], i32 2, <2 x i1> <i1 true, i1 false>, <2 x double> [[PASSTHRU:%.*]])
+; CHECK-NEXT: ret <2 x double> [[RES]]
+;
+ %res = call <2 x double> @llvm.masked.load.v2f64.p0v2f64(<2 x double>* %ptr, i32 2, <2 x i1> <i1 1, i1 trunc (i32 0 to i1)>, <2 x double> %passthru)
+ ret <2 x double> %res
+}
+
define <2 x double> @load_lane0(<2 x double>* %ptr, double %pt) {
; CHECK-LABEL: @load_lane0(
; CHECK-NEXT: [[PTV1:%.*]] = insertelement <2 x double> undef, double [[PT:%.*]], i64 0
@@ -49,7 +58,6 @@ define <2 x double> @load_lane0(<2 x dou
}
-
define void @store_zeromask(<2 x double>* %ptr, <2 x double> %val) {
; CHECK-LABEL: @store_zeromask(
; CHECK-NEXT: ret void
More information about the llvm-commits
mailing list