1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -march=bpfel -verify-machineinstrs -show-mc-encoding | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test_load_add_32 4*9880d681SAndroid Build Coastguard Worker; CHECK: xadd32 5*9880d681SAndroid Build Coastguard Worker; CHECK: encoding: [0xc3 6*9880d681SAndroid Build Coastguard Workerdefine void @test_load_add_32(i32* %p, i32 zeroext %v) { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker atomicrmw add i32* %p, i32 %v seq_cst 9*9880d681SAndroid Build Coastguard Worker ret void 10*9880d681SAndroid Build Coastguard Worker} 11*9880d681SAndroid Build Coastguard Worker 12*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: test_load_add_64 13*9880d681SAndroid Build Coastguard Worker; CHECK: xadd64 14*9880d681SAndroid Build Coastguard Worker; CHECK: encoding: [0xdb 15*9880d681SAndroid Build Coastguard Workerdefine void @test_load_add_64(i64* %p, i64 zeroext %v) { 16*9880d681SAndroid Build Coastguard Workerentry: 17*9880d681SAndroid Build Coastguard Worker atomicrmw add i64* %p, i64 %v seq_cst 18*9880d681SAndroid Build Coastguard Worker ret void 19*9880d681SAndroid Build Coastguard Worker} 20