1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 -march=x86-64 2*9880d681SAndroid Build Coastguard Worker; rdar://8204072 3*9880d681SAndroid Build Coastguard Worker; PR7652 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker@sc = external global i8 6*9880d681SAndroid Build Coastguard Worker@uc = external global i8 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdefine void @test_fetch_and_op() nounwind { 9*9880d681SAndroid Build Coastguard Workerentry: 10*9880d681SAndroid Build Coastguard Worker %tmp40 = atomicrmw and i8* @sc, i8 11 monotonic 11*9880d681SAndroid Build Coastguard Worker store i8 %tmp40, i8* @sc 12*9880d681SAndroid Build Coastguard Worker %tmp41 = atomicrmw and i8* @uc, i8 11 monotonic 13*9880d681SAndroid Build Coastguard Worker store i8 %tmp41, i8* @uc 14*9880d681SAndroid Build Coastguard Worker ret void 15*9880d681SAndroid Build Coastguard Worker} 16