diff options
| author | Slanterns <slanterns.w@gmail.com> | 2024-06-16 15:56:13 +0800 |
|---|---|---|
| committer | Slanterns <slanterns.w@gmail.com> | 2024-06-16 17:19:25 +0800 |
| commit | 51d95464169751604a3cf70b1c8c524450258427 (patch) | |
| tree | 30251f3ef0d6d3e2e5614a838cbfdcdac1086ec0 | |
| parent | 240478383bfa73e165bb677e6d5ecafe48523f45 (diff) | |
| download | rust-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.rs | 4 |
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 |
