xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/pr25317.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
4*9880d681SAndroid Build Coastguard Workertarget triple = "armv7--linux-gnueabihf"
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: f:
7*9880d681SAndroid Build Coastguard Worker; CHECK: str lr, [r0]
8*9880d681SAndroid Build Coastguard Workerdefine void @f(i32* %p) {
9*9880d681SAndroid Build Coastguard Worker  call void asm sideeffect "str lr, $0", "=*o"(i32* %p)
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}