mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-22 15:52:38 +00:00
If a SemIR instruction has a braced block and a constant value, print the constant value first. (#3734)
This commit is contained in:
1 parent
67d5446b03
commit
064123d93f
380 files changed
+2070
-2023
No files matched your search
+6
-6
@@ -28,11 +28,11 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: file {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace {
|
||||
// CHECK:STDOUT: package: <namespace> = namespace [template] {
|
||||
// CHECK:STDOUT: .F = %F
|
||||
// CHECK:STDOUT: .G = %G
|
||||
// CHECK:STDOUT: } [template]
|
||||
// CHECK:STDOUT: %F: <function> = fn_decl @F {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %F: <function> = fn_decl @F [template] {
|
||||
// CHECK:STDOUT: %.loc7_17: i32 = int_literal 3 [template = constants.%.1]
|
||||
// CHECK:STDOUT: %.loc7_18: type = array_type %.loc7_17, i32 [template = constants.%.2]
|
||||
// CHECK:STDOUT: %arr.loc7_6.1: [i32; 3] = param arr
|
||||
@@ -40,10 +40,10 @@ fn G() -> i32 {
|
||||
// CHECK:STDOUT: %i.loc7_21.1: i32 = param i
|
||||
// CHECK:STDOUT: @F.%i: i32 = bind_name i, %i.loc7_21.1
|
||||
// CHECK:STDOUT: %return.var.loc7: ref i32 = var <return slot>
|
||||
// CHECK:STDOUT: } [template]
|
||||
// CHECK:STDOUT: %G: <function> = fn_decl @G {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: %G: <function> = fn_decl @G [template] {
|
||||
// CHECK:STDOUT: %return.var.loc11: ref i32 = var <return slot>
|
||||
// CHECK:STDOUT: } [template]
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: fn @F(%arr: [i32; 3], %i: i32) -> i32 {
|
||||
|
||||
Reference in new issue
Block a user