mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-27 14:44:05 +00:00
Add infrastructure for distinguishing between signed and unsigned integer types. (#3822)
Because we don't have any unsigned integer types yet, this is mostly a no-op change, except that we now format negative values in SemIR properly.
This commit is contained in:
1 parent
0248f3ec92
commit
e4528b8abb
12 files changed
+45
-27
No files matched your search
@@ -15,7 +15,7 @@ var a: [i32; Negate(1)];
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: constants {
|
||||
// CHECK:STDOUT: %.1: i32 = int_literal 1 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal 4294967295 [template]
|
||||
// CHECK:STDOUT: %.2: i32 = int_literal -1 [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
|
||||
Reference in new issue
Block a user