Skip to content

Commit

Permalink
Rollup merge of rust-lang#93004 - krasimirgg:threadlocal-llvm-up, r=n…
Browse files Browse the repository at this point in the history
…ikic

update codegen test for LLVM 14

Fixes rust-lang#93003.
  • Loading branch information
matthiaskrgr authored Jan 18, 2022
2 parents baeff67 + e4607ff commit b8c544d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/codegen/thread-local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ thread_local!(static A: Cell<u32> = const { Cell::new(1) });
// CHECK-LABEL: @get
#[no_mangle]
fn get() -> u32 {
// CHECK: %0 = load i32, i32* bitcast ({{.*}} [[TLS]] to i32*)
// CHECK: %0 = load i32, i32* {{.*}}[[TLS]]{{.*}}
// CHECK-NEXT: ret i32 %0
A.with(|a| a.get())
}

// CHECK-LABEL: @set
#[no_mangle]
fn set(v: u32) {
// CHECK: store i32 %0, i32* bitcast ({{.*}} [[TLS]] to i32*)
// CHECK: store i32 %0, i32* {{.*}}[[TLS]]{{.*}}
// CHECK-NEXT: ret void
A.with(|a| a.set(v))
}
Expand Down

0 comments on commit b8c544d

Please sign in to comment.