[llvm] 7cce908 - [RISCV][GISel][NFC] Correct the test case in constant32.mir (#70003)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 07:57:09 PDT 2023
Author: Brandon Wu
Date: 2023-10-24T22:57:05+08:00
New Revision: 7cce908367faddd44443812ff2fba4e12561a083
URL: https://github.com/llvm/llvm-project/commit/7cce908367faddd44443812ff2fba4e12561a083
DIFF: https://github.com/llvm/llvm-project/commit/7cce908367faddd44443812ff2fba4e12561a083.diff
LOG: [RISCV][GISel][NFC] Correct the test case in constant32.mir (#70003)
Added:
Modified:
llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant32.mir
Removed:
################################################################################
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