xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/inlineasm2.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm-eabi -mattr=+vfp2 %s -o /dev/null
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Workerdefine double @__ieee754_sqrt(double %x) {
4*9880d681SAndroid Build Coastguard Worker	%tmp2 = tail call double asm "fsqrtd ${0:P}, ${1:P}", "=w,w"( double %x )
5*9880d681SAndroid Build Coastguard Worker	ret double %tmp2
6*9880d681SAndroid Build Coastguard Worker}
7*9880d681SAndroid Build Coastguard Worker
8*9880d681SAndroid Build Coastguard Workerdefine float @__ieee754_sqrtf(float %x) {
9*9880d681SAndroid Build Coastguard Worker	%tmp2 = tail call float asm "fsqrts $0, $1", "=w,w"( float %x )
10*9880d681SAndroid Build Coastguard Worker	ret float %tmp2
11*9880d681SAndroid Build Coastguard Worker}
12