Fix printing of integer literals with the high bit set. (#3201)

Integer literals are not signed, so don't print them as signed.
This commit is contained in:
Richard Smith
2023-09-06 22:33:54 +00:00
committed by GitHub
parent 8e8041ab1a
commit 80e307e2ce
5 changed files with 7 additions and 7 deletions
@@ -85,7 +85,7 @@ var b: i32 = a[0xFFFFFFFFFFFFFFFFF];
// CHECK:STDOUT: %.loc7_23.3: [i32; 1] = array_value %.loc7_23.2
// CHECK:STDOUT: assign %a, %.loc7_23.3
// CHECK:STDOUT: %b: ref i32 = var "b"
// CHECK:STDOUT: %.loc11_16: i32 = int_literal -1
// CHECK:STDOUT: %.loc11_16: i32 = int_literal 295147905179352825855
// CHECK:STDOUT: %.loc11_35.1: ref i32 = array_index %a, <error>
// CHECK:STDOUT: %.loc11_35.2: i32 = bind_value %.loc11_35.1
// CHECK:STDOUT: assign %b, %.loc11_35.2
@@ -108,7 +108,7 @@ var c: i32 = b[0xFFFFFFFFFFFFFFFFF];
// CHECK:STDOUT: %.loc7_5: (i32,) = bind_value %a
// CHECK:STDOUT: assign %b, %.loc7_5
// CHECK:STDOUT: %c: ref i32 = var "c"
// CHECK:STDOUT: %.loc12_16: i32 = int_literal -1
// CHECK:STDOUT: %.loc12_16: i32 = int_literal 295147905179352825855
// CHECK:STDOUT: %.loc12_35: ref <error> = tuple_index %b, <error>
// CHECK:STDOUT: assign %c, <error>
// CHECK:STDOUT: }