1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=mips64el-unknown-linux-gnu -mcpu=mips64 < %s | FileCheck %s
3
4define fp128 @call_fmaxl(fp128 %a, fp128 %b) {
5; CHECK-LABEL: call_fmaxl:
6; CHECK:       # %bb.0:
7; CHECK-NEXT:    daddiu $sp, $sp, -16
8; CHECK-NEXT:    .cfi_def_cfa_offset 16
9; CHECK-NEXT:    sd $ra, 8($sp) # 8-byte Folded Spill
10; CHECK-NEXT:    .cfi_offset 31, -8
11; CHECK-NEXT:    jal fmaxl
12; CHECK-NEXT:    nop
13; CHECK-NEXT:    mov.d $f12, $f0
14; CHECK-NEXT:    jal f
15; CHECK-NEXT:    mov.d $f13, $f2
16; CHECK-NEXT:    ld $ra, 8($sp) # 8-byte Folded Reload
17; CHECK-NEXT:    jr $ra
18; CHECK-NEXT:    daddiu $sp, $sp, 16
19    %1 = call fp128 @llvm.maxnum.f128(fp128 %a, fp128 %b)
20    %2 = call fp128 @f(fp128 %1)
21    ret fp128 %2
22}
23
24declare fp128 @llvm.maxnum.f128(fp128, fp128)
25declare fp128 @f(fp128)
26