Skip to content

Commit ffa45f2

Browse files
committed
[RISCV][GISel] Use correct constant for i32 INT_MAX in test. NFC
1 parent 3aa24ea commit ffa45f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/constant64.mir

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,10 @@ body: |
182182
; CHECK: liveins: $x10
183183
; CHECK-NEXT: {{ $}}
184184
; CHECK-NEXT: [[LUI:%[0-9]+]]:gpr = LUI 524288
185-
; CHECK-NEXT: $x10 = COPY [[LUI]]
185+
; CHECK-NEXT: [[ADDIW:%[0-9]+]]:gpr = ADDIW [[LUI]], -1
186+
; CHECK-NEXT: $x10 = COPY [[ADDIW]]
186187
; CHECK-NEXT: PseudoRET implicit $x10
187-
%0:gprb(s32) = G_CONSTANT i32 2147483648
188+
%0:gprb(s32) = G_CONSTANT i32 2147483647
188189
%1:gprb(s64) = G_ANYEXT %0(s32)
189190
$x10 = COPY %1(s64)
190191
PseudoRET implicit $x10

0 commit comments

Comments
 (0)