xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/Windows/hard-float.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-windows-itanium -mcpu=cortex-a9 -o - %s \
2*9880d681SAndroid Build Coastguard Worker; RUN:   | FileCheck %s -check-prefix CHECK-WIN
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-windows-gnu -mcpu=cortex-a9 -o - %s \
5*9880d681SAndroid Build Coastguard Worker; RUN:   | FileCheck %s -check-prefix CHECK-GNU
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Workerdefine float @function(float %f, float %g) nounwind {
8*9880d681SAndroid Build Coastguard Workerentry:
9*9880d681SAndroid Build Coastguard Worker  %h = fadd float %f, %g
10*9880d681SAndroid Build Coastguard Worker  ret float %h
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker; CHECK-WIN: vadd.f32 s0, s0, s1
14*9880d681SAndroid Build Coastguard Worker
15*9880d681SAndroid Build Coastguard Worker; CHECK-GNU: vadd.f32 s0, s0, s1
16*9880d681SAndroid Build Coastguard Worker
17