We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 205e7d2 + 4ecca58 commit 179e759Copy full SHA for 179e759
tests/codegen-llvm/issues/issue-118306.rs
@@ -11,7 +11,7 @@ pub fn branchy(input: u64) -> u64 {
11
// CHECK-LABEL: @branchy(
12
// CHECK-NEXT: start:
13
// CHECK-NEXT: [[_2:%.*]] = and i64 [[INPUT:%.*]], 3
14
- // 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]]
15
// CHECK-NEXT: [[SWITCH_LOAD:%.*]] = load i64, ptr [[SWITCH_GEP]]
16
// CHECK-NEXT: ret i64 [[SWITCH_LOAD]]
17
match input % 4 {
0 commit comments