mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
925738bb5c
so other unexpected operations don't slip through. Based on patch by Logan Chien. PR11786/PR13186. llvm-svn: 162146
23 lines
454 B
LLVM
23 lines
454 B
LLVM
; RUN: llc < %s -mtriple=i686-none-linux | FileCheck %s
|
|
|
|
define i32* @test_atomic_ptr_load(i32** %a0) {
|
|
; CHECK: test_atomic_ptr_load
|
|
; CHECK: movl
|
|
; CHECK: movl
|
|
; CHECK: ret
|
|
0:
|
|
%0 = load atomic i32** %a0 seq_cst, align 4
|
|
ret i32* %0
|
|
}
|
|
|
|
define void @test_atomic_ptr_store(i32* %a0, i32** %a1) {
|
|
; CHECK: test_atomic_ptr_store
|
|
; CHECK: movl
|
|
; CHECK: movl
|
|
; CHECK: xchgl
|
|
; CHECK: ret
|
|
0:
|
|
store atomic i32* %a0, i32** %a1 seq_cst, align 4
|
|
ret void
|
|
}
|