about summary refs log tree commit diff
path: root/tests/codegen-llvm
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2025-09-02 17:08:59 +0200
committerGitHub <noreply@github.com>2025-09-02 17:08:59 +0200
commit179e75944f34340812d113411aa947276942543d (patch)
tree43e2fd5ebfeb152892ec0e8c928cb260c8637c00 /tests/codegen-llvm
parent205e7d2cafa4c7f62459f8b5eb7b29be865f8458 (diff)
parent4ecca581fad73c51d7c7a78c4b97a3ada2ca5249 (diff)
downloadrust-179e75944f34340812d113411aa947276942543d.tar.gz
rust-179e75944f34340812d113411aa947276942543d.zip
Rollup merge of #146116 - zmodem:issue_118306_fix, r=nikic
Adjust issue-118306.rs test after LLVM change

This updates tests/codegen-llvm/issues/issue-118306.rs to pass also after https://github.com/llvm/llvm-project/pull/155415
Diffstat (limited to 'tests/codegen-llvm')
-rw-r--r--tests/codegen-llvm/issues/issue-118306.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codegen-llvm/issues/issue-118306.rs b/tests/codegen-llvm/issues/issue-118306.rs
index f12dc7cdfe2..934a7687b60 100644
--- a/tests/codegen-llvm/issues/issue-118306.rs
+++ b/tests/codegen-llvm/issues/issue-118306.rs
@@ -11,7 +11,7 @@ pub fn branchy(input: u64) -> u64 {
     // CHECK-LABEL: @branchy(
     // CHECK-NEXT:  start:
     // CHECK-NEXT:    [[_2:%.*]] = and i64 [[INPUT:%.*]], 3
-    // CHECK-NEXT:    [[SWITCH_GEP:%.*]] = getelementptr inbounds{{( nuw)?}} [4 x i64], ptr @switch.table.branchy, i64 0, i64 [[_2]]
+    // CHECK-NEXT:    [[SWITCH_GEP:%.*]] = getelementptr inbounds{{( nuw)?}} {{\[4 x i64\]|i64}}, ptr @switch.table.branchy{{(, i64 0)?}}, i64 [[_2]]
     // CHECK-NEXT:    [[SWITCH_LOAD:%.*]] = load i64, ptr [[SWITCH_GEP]]
     // CHECK-NEXT:    ret i64 [[SWITCH_LOAD]]
     match input % 4 {