about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSlanterns <slanterns.w@gmail.com>2024-06-16 15:56:13 +0800
committerSlanterns <slanterns.w@gmail.com>2024-06-16 17:19:25 +0800
commit51d95464169751604a3cf70b1c8c524450258427 (patch)
tree30251f3ef0d6d3e2e5614a838cbfdcdac1086ec0
parent240478383bfa73e165bb677e6d5ecafe48523f45 (diff)
downloadrust-51d95464169751604a3cf70b1c8c524450258427.tar.gz
rust-51d95464169751604a3cf70b1c8c524450258427.zip
Apply suggestion.
Co-authored-by: Jubilee <46493976+workingjubilee@users.noreply.github.com>
-rw-r--r--tests/codegen/error-provide.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/codegen/error-provide.rs b/tests/codegen/error-provide.rs
index e80905eee11..68dd383e5cc 100644
--- a/tests/codegen/error-provide.rs
+++ b/tests/codegen/error-provide.rs
@@ -36,7 +36,9 @@ impl std::error::Error for MyError {
         // LLVM should be able to optimize multiple .provide_* calls into a switch table
         // and eliminate redundant ones, rather than compare one-by-one.
 
-        // CHECK: switch i64 %{{.*}}, label %{{.*}} [
+        // CHECK-NEXT: start:
+        // CHECK-NEXT: %[[SCRUTINEE:[^ ]+]] = load i64, ptr
+        // CHECK-NEXT: switch i64 %[[SCRUTINEE]], label %{{.*}} [
         // CHECK-COUNT-3: i64 {{.*}}, label %{{.*}}
         // CHECK-NEXT: ]
         request