[llvm] [RISCV][GISel][NFC] Correct the test case in constant32.mir (PR #70003)
Brandon Wu via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 23 20:59:34 PDT 2023
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/70003
None
>From 5fab1487c297dcb7cace3957f218c9bf5be0bb86 Mon Sep 17 00:00:00 2001
From: Brandon Wu <brandon.wu at sifive.com>
Date: Mon, 23 Oct 2023 20:58:39 -0700
Subject: [PATCH] [RISCV][GISel][NFC] Correct the test case in constant32.mir
---
.../RISCV/GlobalISel/instruction-select/constant32.mir | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant32.mir b/llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant32.mir
index 4af5d1c6173b44a..cb66c3081c3a953 100644
--- a/llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant32.mir
+++ b/llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant32.mir
@@ -55,9 +55,10 @@ body: |
; CHECK: liveins: $x10
; CHECK-NEXT: {{ $}}
; CHECK-NEXT: [[LUI:%[0-9]+]]:gpr = LUI 524288
- ; CHECK-NEXT: $x10 = COPY [[LUI]]
+ ; CHECK-NEXT: [[ADDI:%[0-9]+]]:gpr = ADDI [[LUI]], -1
+ ; CHECK-NEXT: $x10 = COPY [[ADDI]]
; CHECK-NEXT: PseudoRET implicit $x10
- %0:gprb(s32) = G_CONSTANT i32 2147483648
+ %0:gprb(s32) = G_CONSTANT i32 2147483647
$x10 = COPY %0(s32)
PseudoRET implicit $x10
More information about the llvm-commits
mailing list