1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch32 --mattr=+d < %s | FileCheck %s --check-prefix=LA32
3 ; RUN: llc --mtriple=loongarch64 --mattr=+d < %s | FileCheck %s --check-prefix=LA64
5 ;; Exercise the 'fdiv' LLVM IR: https://llvm.org/docs/LangRef.html#fdiv-instruction
7 define float @fdiv_s(float %x, float %y) {
10 ; LA32-NEXT: fdiv.s $fa0, $fa0, $fa1
15 ; LA64-NEXT: fdiv.s $fa0, $fa0, $fa1
17 %div = fdiv float %x, %y
21 define double @fdiv_d(double %x, double %y) {
24 ; LA32-NEXT: fdiv.d $fa0, $fa0, $fa1
29 ; LA64-NEXT: fdiv.d $fa0, $fa0, $fa1
31 %div = fdiv double %x, %y