xref: /aosp_15_r20/external/llvm/test/CodeGen/Mips/fp16static.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=mipsel -mattr=mips16 -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC16
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker@x = common global float 0.000000e+00, align 4
4*9880d681SAndroid Build Coastguard Worker
5*9880d681SAndroid Build Coastguard Workerdefine void @foo() nounwind {
6*9880d681SAndroid Build Coastguard Workerentry:
7*9880d681SAndroid Build Coastguard Worker  %0 = load float, float* @x, align 4
8*9880d681SAndroid Build Coastguard Worker  %1 = load float, float* @x, align 4
9*9880d681SAndroid Build Coastguard Worker  %mul = fmul float %0, %1
10*9880d681SAndroid Build Coastguard Worker  store float %mul, float* @x, align 4
11*9880d681SAndroid Build Coastguard Worker; CHECK-STATIC16: jal	__mips16_mulsf3
12*9880d681SAndroid Build Coastguard Worker  ret void
13*9880d681SAndroid Build Coastguard Worker}
14