Skip to content

Commit

Permalink
tests: adapt for LLVM change 5b386b8
Browse files Browse the repository at this point in the history
The above-mentioned change modified the output of thread-local.rs by
changing some variable names. Rather than assume things get put in %0,
we capture the variable so the test passes in both the old and new
version.
  • Loading branch information
durin42 committed Apr 17, 2023
1 parent e49122f commit bef3502
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/codegen/thread-local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ thread_local!(static A: Cell<u32> = const { Cell::new(1) });
// CHECK-LABEL: @get
#[no_mangle]
fn get() -> u32 {
// CHECK: %0 = load i32, {{.*}}[[TLS]]{{.*}}
// CHECK-NEXT: ret i32 %0
// CHECK: [[RET_0:%.+]] = load i32, {{.*}}[[TLS]]{{.*}}
// CHECK-NEXT: ret i32 [[RET_0]]
A.with(|a| a.get())
}

Expand All @@ -36,8 +36,8 @@ fn set(v: u32) {
// CHECK-LABEL: @get_aux
#[no_mangle]
fn get_aux() -> u64 {
// CHECK: %0 = load i64, {{.*}}[[TLS_AUX]]
// CHECK-NEXT: ret i64 %0
// CHECK: [[RET_1:%.+]] = load i64, {{.*}}[[TLS_AUX]]
// CHECK-NEXT: ret i64 [[RET_1]]
aux::A.with(|a| a.get())
}

Expand Down

0 comments on commit bef3502

Please sign in to comment.