1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=riscv32 -mattr=+d -verify-machineinstrs < %s \
3; RUN:   | FileCheck -check-prefix=RV32ID %s
4
5define double @frem_f64(double %a, double %b) nounwind {
6; RV32ID-LABEL: frem_f64:
7; RV32ID:       # %bb.0:
8; RV32ID-NEXT:    addi sp, sp, -16
9; RV32ID-NEXT:    sw ra, 12(sp)
10; RV32ID-NEXT:    call fmod
11; RV32ID-NEXT:    lw ra, 12(sp)
12; RV32ID-NEXT:    addi sp, sp, 16
13; RV32ID-NEXT:    ret
14  %1 = frem double %a, %b
15  ret double %1
16}
17