1 ; RUN: llc < %s -mtriple=x86_64-apple-macosx10.7.0 | FileCheck %s
3 define void @test1(i32* %ptr, i32 %val1) {
5 ; CHECK: xchgl %esi, (%rdi)
6 store atomic i32 %val1, i32* %ptr seq_cst, align 4
10 define void @test2(i32* %ptr, i32 %val1) {
12 ; CHECK: movl %esi, (%rdi)
13 store atomic i32 %val1, i32* %ptr release, align 4
17 define i32 @test3(i32* %ptr) {
19 ; CHECK: movl (%rdi), %eax
20 %val = load atomic i32* %ptr seq_cst, align 4