1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/Assembler/opaque-ptr-cmpxchg.ll
Arthur Eubanks 208107dd2c [OpaquePtr] Make cmpxchg work with opaque pointers
Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D102745
2021-05-19 12:44:10 -07: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
}