llvm-project/llvm/test/Assembler/cmpxchg-ordering-3.ll
Nikita Popov 75a479221b [Assembler] Convert tests to opaque pointers (NFC)
Some tests are removed because the error conditions can no longer
occur with opaque pointers.
2022-12-13 14:36:21 +01:00

8 lines
195 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
define void @f(ptr %a, i32 %b, i32 %c) {
; CHECK: invalid cmpxchg failure ordering
%x = cmpxchg ptr %a, i32 %b, i32 %c acq_rel acq_rel
ret void
}