about summary refs log tree commit diff
path: root/tests/codegen
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-05-19 15:48:43 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2023-05-26 15:01:29 +0000
commit164d041e303e9c98daaf35301fa88ba6844277dd (patch)
tree3e75cf6092ee48d0ce02403c60a23722f96465de /tests/codegen
parent5f66c4192111e4fda5ccbdb714e97e18ac6adcc4 (diff)
downloadrust-164d041e303e9c98daaf35301fa88ba6844277dd.tar.gz
rust-164d041e303e9c98daaf35301fa88ba6844277dd.zip
Stop creating intermediate places just to immediate convert them to operands
Diffstat (limited to 'tests/codegen')
-rw-r--r--tests/codegen/const_scalar_pair.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/codegen/const_scalar_pair.rs b/tests/codegen/const_scalar_pair.rs
index 16e6484585c..8f32c50b798 100644
--- a/tests/codegen/const_scalar_pair.rs
+++ b/tests/codegen/const_scalar_pair.rs
@@ -1,10 +1,8 @@
 // compile-flags: --crate-type=lib -Copt-level=0 -Zmir-opt-level=0 -C debuginfo=2
 
-// CHECK: @0 = private unnamed_addr constant <{ [8 x i8] }> <{ [8 x i8] c"\01\00\00\00\02\00\00\00" }>, align 4
-
 #![feature(inline_const)]
 
 pub fn foo() -> (i32, i32) {
-    // CHECK: %0 = load i32, ptr @0, align 4
+    // CHECK: ret { i32, i32 } { i32 1, i32 2 }
     const { (1, 2) }
 }