summaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/AArch64/GlobalISel/legalize-rem.mir')
-rw-r--r--test/CodeGen/AArch64/GlobalISel/legalize-rem.mir13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir b/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
index e77f3487609f1..50a4d93cbe20c 100644
--- a/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
+++ b/test/CodeGen/AArch64/GlobalISel/legalize-rem.mir
@@ -1,4 +1,4 @@
-# RUN: llc -O0 -run-pass=legalizer -global-isel %s -o - 2>&1 | FileCheck %s
+# RUN: llc -O0 -run-pass=legalizer -global-isel %s -o - | FileCheck %s
--- |
target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
@@ -45,8 +45,15 @@ body: |
; CHECK: [[RHS32:%[0-9]+]](s32) = G_SEXT %7
; CHECK: [[QUOT32:%[0-9]+]](s32) = G_SDIV [[LHS32]], [[RHS32]]
; CHECK: [[QUOT:%[0-9]+]](s8) = G_TRUNC [[QUOT32]]
- ; CHECK: [[PROD:%[0-9]+]](s8) = G_MUL [[QUOT]], %7
- ; CHECK: [[RES:%[0-9]+]](s8) = G_SUB %6, [[PROD]]
+
+ ; CHECK: [[QUOT32_2:%.*]](s32) = G_ANYEXT [[QUOT]](s8)
+ ; CHECK: [[RHS32_2:%.*]](s32) = G_ANYEXT %7(s8)
+ ; CHECK: [[PROD32:%.*]](s32) = G_MUL [[QUOT32_2]], [[RHS32_2]]
+ ; CHECK: [[PROD:%.*]](s8) = G_TRUNC [[PROD32]](s32)
+
+ ; CHECK: [[LHS32_2:%.*]](s32) = G_ANYEXT %6(s8)
+ ; CHECK: [[PROD32_2:%.*]](s32) = G_ANYEXT [[PROD]](s8)
+ ; CHECK: [[RES:%[0-9]+]](s32) = G_SUB [[LHS32_2]], [[PROD32_2]]
%6(s8) = G_TRUNC %0
%7(s8) = G_TRUNC %1
%8(s8) = G_SREM %6, %7