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
+3 -3
View File
@@ -115,7 +115,7 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9);
// CHECK:STDOUT: ]
// CHECK:STDOUT:
// CHECK:STDOUT: package {
// CHECK:STDOUT: %.loc7_14: i32 = int_literal -7
// CHECK:STDOUT: %.loc7_14: i32 = int_literal 9
// CHECK:STDOUT: %.loc7_15: type = array_type %.loc7_14, i32
// CHECK:STDOUT: %a: ref [i32; 9] = var "a"
// CHECK:STDOUT: %.loc7_20.1: i32 = int_literal 1
@@ -132,9 +132,9 @@ var a: [i32; 9] = (1, 2, 3, 4, 5, 6, 7, 8, 9);
// CHECK:STDOUT: %.loc7_35.2: i32 = stub_reference %.loc7_35.1
// CHECK:STDOUT: %.loc7_38.1: i32 = int_literal 7
// CHECK:STDOUT: %.loc7_38.2: i32 = stub_reference %.loc7_38.1
// CHECK:STDOUT: %.loc7_41.1: i32 = int_literal -8
// CHECK:STDOUT: %.loc7_41.1: i32 = int_literal 8
// CHECK:STDOUT: %.loc7_41.2: i32 = stub_reference %.loc7_41.1
// CHECK:STDOUT: %.loc7_44.1: i32 = int_literal -7
// CHECK:STDOUT: %.loc7_44.1: i32 = int_literal 9
// CHECK:STDOUT: %.loc7_44.2: i32 = stub_reference %.loc7_44.1
// CHECK:STDOUT: %.loc7_45.1: type = tuple_type (i32, i32, i32, i32, i32, i32, i32, i32, i32)
// CHECK:STDOUT: %.loc7_45.2: (i32, i32, i32, i32, i32, i32, i32, i32, i32) = tuple_value (%.loc7_20.2, %.loc7_23.2, %.loc7_26.2, %.loc7_29.2, %.loc7_32.2, %.loc7_35.2, %.loc7_38.2, %.loc7_41.2, %.loc7_44.2)