summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstSimplify/rem.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/rem.ll')
-rw-r--r--llvm/test/Transforms/InstSimplify/rem.ll8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/test/Transforms/InstSimplify/rem.ll b/llvm/test/Transforms/InstSimplify/rem.ll
index 54a7b5bfcae..e18ff567414 100644
--- a/llvm/test/Transforms/InstSimplify/rem.ll
+++ b/llvm/test/Transforms/InstSimplify/rem.ll
@@ -309,9 +309,7 @@ define i32 @rem10(i32 %x, i32 %y) {
define i32 @srem_with_sext_bool_divisor(i1 %x, i32 %y) {
; CHECK-LABEL: @srem_with_sext_bool_divisor(
-; CHECK-NEXT: [[S:%.*]] = sext i1 [[X:%.*]] to i32
-; CHECK-NEXT: [[R:%.*]] = srem i32 [[Y:%.*]], [[S]]
-; CHECK-NEXT: ret i32 [[R]]
+; CHECK-NEXT: ret i32 0
;
%s = sext i1 %x to i32
%r = srem i32 %y, %s
@@ -320,9 +318,7 @@ define i32 @srem_with_sext_bool_divisor(i1 %x, i32 %y) {
define <2 x i32> @srem_with_sext_bool_divisor_vec(<2 x i1> %x, <2 x i32> %y) {
; CHECK-LABEL: @srem_with_sext_bool_divisor_vec(
-; CHECK-NEXT: [[S:%.*]] = sext <2 x i1> [[X:%.*]] to <2 x i32>
-; CHECK-NEXT: [[R:%.*]] = srem <2 x i32> [[Y:%.*]], [[S]]
-; CHECK-NEXT: ret <2 x i32> [[R]]
+; CHECK-NEXT: ret <2 x i32> zeroinitializer
;
%s = sext <2 x i1> %x to <2 x i32>
%r = srem <2 x i32> %y, %s
OpenPOWER on IntegriCloud