e45cf47923
Always read bitcode according to the -opaque-pointers mode. Do not perform auto-detection to implicitly switch to typed pointers. This is a step towards removing typed pointer support, and also eliminates the class of problems where linking may fail if a typed pointer module is loaded before an opaque pointer module. (The latest place where this was encountered is D139924, but this has previously been fixed in other places doing bitcode linking as well.) Differential Revision: https://reviews.llvm.org/D139940
19 lines
799 B
LLVM
19 lines
799 B
LLVM
; RUN: llvm-as %s -o - | llvm-dis | FileCheck %s
|
|
; RUN: verify-uselistorder < %s
|
|
|
|
define void @test_cmpxchg(i32* %addr, i32 %desired, i32 %new) {
|
|
cmpxchg i32* %addr, i32 %desired, i32 %new seq_cst seq_cst
|
|
; CHECK: cmpxchg ptr %addr, i32 %desired, i32 %new seq_cst seq_cst
|
|
|
|
cmpxchg volatile i32* %addr, i32 %desired, i32 %new seq_cst monotonic
|
|
; CHECK: cmpxchg volatile ptr %addr, i32 %desired, i32 %new seq_cst monotonic
|
|
|
|
cmpxchg weak i32* %addr, i32 %desired, i32 %new acq_rel acquire
|
|
; CHECK: cmpxchg weak ptr %addr, i32 %desired, i32 %new acq_rel acquire
|
|
|
|
cmpxchg weak volatile i32* %addr, i32 %desired, i32 %new syncscope("singlethread") release monotonic
|
|
; CHECK: cmpxchg weak volatile ptr %addr, i32 %desired, i32 %new syncscope("singlethread") release monotonic
|
|
|
|
ret void
|
|
}
|