mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 14:01:06 +01:00
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:
@@ -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: }
|
||||
|
||||
Reference in New Issue
Block a user