about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2023-03-10 10:29:41 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2023-03-14 20:52:42 +0100
commit526a2c75219563216ebba7eaf89b1c498e1e2b82 (patch)
tree9b92e551509372bddb16a16821d33b4158a8ff4d /tests/codegen
parent50d0959a2f7ba5b5622a442d332e26f6f3059744 (diff)
downloadrust-526a2c75219563216ebba7eaf89b1c498e1e2b82.tar.gz
rust-526a2c75219563216ebba7eaf89b1c498e1e2b82.zip
ICE when checking LocalInfo on runtime MIR.
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/fewer-names.rs4
-rw-r--r--tests/codegen/var-names.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/codegen/fewer-names.rs b/tests/codegen/fewer-names.rs
index ac8cba06b48..7f383a5c149 100644
--- a/tests/codegen/fewer-names.rs
+++ b/tests/codegen/fewer-names.rs
@@ -13,8 +13,8 @@ pub fn sum(x: u32, y: u32) -> u32 {
 
 // NO-LABEL: define{{.*}}i32 @sum(i32 noundef %x, i32 noundef %y)
 // NO-NEXT:  start:
-// NO-NEXT:    %z = add i32 %y, %x
-// NO-NEXT:    ret i32 %z
+// NO-NEXT:    %0 = add i32 %y, %x
+// NO-NEXT:    ret i32 %0
     let z = x + y;
     z
 }
diff --git a/tests/codegen/var-names.rs b/tests/codegen/var-names.rs
index d4715efad73..53841df32e8 100644
--- a/tests/codegen/var-names.rs
+++ b/tests/codegen/var-names.rs
@@ -9,7 +9,7 @@ pub fn test(a: u32, b: u32) -> u32 {
     // CHECK: %c = add i32 %a, %b
     let d = c;
     let e = d * a;
-    // CHECK-NEXT: %e = mul i32 %c, %a
+    // CHECK-NEXT: %0 = mul i32 %c, %a
     e
-    // CHECK-NEXT: ret i32 %e
+    // CHECK-NEXT: ret i32 %0
 }