1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
3 ; RUN: llc -verify-machineinstrs -csky-no-aliases < %s -mtriple=csky -mattr=+2e3 -mattr=+fpuv2_sf -mattr=+fpuv2_df -mattr=+hard-float | FileCheck %s
5 define float @FADD_FLOAT(float %x, float %y) {
6 ; CHECK-LABEL: FADD_FLOAT:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: fmtvrl vr0, a1
9 ; CHECK-NEXT: fmtvrl vr1, a0
10 ; CHECK-NEXT: fadds vr0, vr0, vr1
11 ; CHECK-NEXT: fmfvrl a0, vr0
14 %fadd = fadd float %y, %x
18 define double @FADD_DOUBLE(double %x, double %y) {
19 ; CHECK-LABEL: FADD_DOUBLE:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: fmtvrl vr0, a0
22 ; CHECK-NEXT: fmtvrh vr0, a1
23 ; CHECK-NEXT: fmtvrl vr1, a2
24 ; CHECK-NEXT: fmtvrh vr1, a3
25 ; CHECK-NEXT: faddd vr0, vr1, vr0
26 ; CHECK-NEXT: fmfvrl a0, vr0
27 ; CHECK-NEXT: fmfvrh a1, vr0
30 %fadd = fadd double %y, %x