1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -mtriple=i686-none-linux -verify-machineinstrs | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Workerdefine i32* @test_atomic_ptr_load(i32** %a0) { 4*9880d681SAndroid Build Coastguard Worker; CHECK: test_atomic_ptr_load 5*9880d681SAndroid Build Coastguard Worker; CHECK: movl 6*9880d681SAndroid Build Coastguard Worker; CHECK: movl 7*9880d681SAndroid Build Coastguard Worker; CHECK: ret 8*9880d681SAndroid Build Coastguard Worker0: 9*9880d681SAndroid Build Coastguard Worker %0 = load atomic i32*, i32** %a0 seq_cst, align 4 10*9880d681SAndroid Build Coastguard Worker ret i32* %0 11*9880d681SAndroid Build Coastguard Worker} 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Workerdefine void @test_atomic_ptr_store(i32* %a0, i32** %a1) { 14*9880d681SAndroid Build Coastguard Worker; CHECK: test_atomic_ptr_store 15*9880d681SAndroid Build Coastguard Worker; CHECK: movl 16*9880d681SAndroid Build Coastguard Worker; CHECK: movl 17*9880d681SAndroid Build Coastguard Worker; CHECK: xchgl 18*9880d681SAndroid Build Coastguard Worker; CHECK: ret 19*9880d681SAndroid Build Coastguard Worker0: 20*9880d681SAndroid Build Coastguard Worker store atomic i32* %a0, i32** %a1 seq_cst, align 4 21*9880d681SAndroid Build Coastguard Worker ret void 22*9880d681SAndroid Build Coastguard Worker} 23