1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=csky -mattr=+fpuv2_sf,+hard-float -float-abi=hard -verify-machineinstrs -csky-no-aliases < %s \
3 ; RUN: | FileCheck -check-prefix=CSKYF %s
5 @gf = external global float
7 define float @constraint_f_float(float %a) nounwind {
8 ; CSKYF-LABEL: constraint_f_float:
10 ; CSKYF-NEXT: subi16 sp, sp, 4
11 ; CSKYF-NEXT: lrw32 a0, [.LCPI0_0]
12 ; CSKYF-NEXT: flds vr1, (a0, 0)
14 ; CSKYF-NEXT: fadds vr0, vr0, vr1
16 ; CSKYF-NEXT: addi16 sp, sp, 4
18 ; CSKYF-NEXT: .p2align 1
19 ; CSKYF-NEXT: # %bb.1:
20 ; CSKYF-NEXT: .p2align 2
21 ; CSKYF-NEXT: .LCPI0_0:
22 ; CSKYF-NEXT: .long gf
23 %1 = load float, float* @gf
24 %2 = tail call float asm "fadds $0, $1, $2", "=v,v,v"(float %a, float %1)
28 define float @constraint_f_float_abi_name(float %a) nounwind {
29 ; CSKYF-LABEL: constraint_f_float_abi_name:
31 ; CSKYF-NEXT: subi16 sp, sp, 4
32 ; CSKYF-NEXT: lrw32 a0, [.LCPI1_0]
33 ; CSKYF-NEXT: flds vr2, (a0, 0)
34 ; CSKYF-NEXT: fmovs vr1, vr0
36 ; CSKYF-NEXT: fadds vr0, vr1, vr2
38 ; CSKYF-NEXT: addi16 sp, sp, 4
40 ; CSKYF-NEXT: .p2align 1
41 ; CSKYF-NEXT: # %bb.1:
42 ; CSKYF-NEXT: .p2align 2
43 ; CSKYF-NEXT: .LCPI1_0:
44 ; CSKYF-NEXT: .long gf
46 %1 = load float, float* @gf
47 %2 = tail call float asm "fadds $0, $1, $2", "={fr0},{fr1},{fr2}"(float %a, float %1)