llvm-project/llvm/test/Assembler/opaque-ptr-cmpxchg.ll
Nikita Popov edb2fc6dab [llvm] Remove explicit -opaque-pointers flag from tests (NFC)
Opaque pointers mode is enabled by default, no need to explicitly
enable it.
2023-07-12 14:35:55 +02:00

8 lines
230 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: compare value and new value type do not match
define void @cmpxchg(ptr %p, i32 %a, i64 %b) {
%val_success = cmpxchg ptr %p, i32 %a, i64 %b acq_rel monotonic
ret void
}