1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/Bitcode/bcanalyzer-atomics.ll
Matt Arsenault b6edb08837 Fix some missing opcodes in bcanalyzer
llvm-svn: 342878
2018-09-24 12:47:17 +00:00

15 lines
426 B
LLVM

; RUN: llvm-as < %s | llvm-bcanalyzer -dump | FileCheck %s
; Make sure the names of atomics are known
; CHECK: INST_CMPXCHG
; CHECK: INST_STOREATOMIC
; CHECK: INST_LOADATOMIC
; CHECK: INST_FENCE
define void @atomics(i32* %ptr) {
store atomic i32 0, i32* %ptr monotonic, align 4
%load = load atomic i32, i32* %ptr monotonic, align 4
%xchg = cmpxchg i32* %ptr, i32 0, i32 5 acquire monotonic
fence seq_cst
ret void
}