mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Fix some missing opcodes in bcanalyzer
llvm-svn: 342878
This commit is contained in:
parent
3ca5d7eab8
commit
b6edb08837
14
test/Bitcode/bcanalyzer-atomics.ll
Normal file
14
test/Bitcode/bcanalyzer-atomics.ll
Normal file
@ -0,0 +1,14 @@
|
||||
; 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
|
||||
}
|
@ -285,6 +285,11 @@ static const char *GetCodeName(unsigned CodeID, unsigned BlockID,
|
||||
STRINGIFY_CODE(FUNC_CODE, DEBUG_LOC)
|
||||
STRINGIFY_CODE(FUNC_CODE, INST_GEP)
|
||||
STRINGIFY_CODE(FUNC_CODE, OPERAND_BUNDLE)
|
||||
STRINGIFY_CODE(FUNC_CODE, INST_FENCE)
|
||||
STRINGIFY_CODE(FUNC_CODE, INST_ATOMICRMW)
|
||||
STRINGIFY_CODE(FUNC_CODE, INST_LOADATOMIC)
|
||||
STRINGIFY_CODE(FUNC_CODE, INST_STOREATOMIC)
|
||||
STRINGIFY_CODE(FUNC_CODE, INST_CMPXCHG)
|
||||
}
|
||||
case bitc::VALUE_SYMTAB_BLOCK_ID:
|
||||
switch (CodeID) {
|
||||
|
Loading…
Reference in New Issue
Block a user