xref: /llvm-project/llvm/test/Assembler/opaque-ptr-cmpxchg.ll (revision edb2fc6dab2cf04779959829434e9e8572d48a26)
1; RUN: not llvm-as < %s 2>&1 | FileCheck %s
2
3; CHECK: compare value and new value type do not match
4define void @cmpxchg(ptr %p, i32 %a, i64 %b) {
5    %val_success = cmpxchg ptr %p, i32 %a, i64 %b acq_rel monotonic
6    ret void
7}
8