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 'fmul' LLVM IR: https://llvm.org/docs/LangRef.html#fmul-instruction
7 define float @fmul_s(float %x, float %y) {
10 ; LA32-NEXT: fmul.s $fa0, $fa0, $fa1
15 ; LA64-NEXT: fmul.s $fa0, $fa0, $fa1
17 %mul = fmul float %x, %y
21 define double @fmul_d(double %x, double %y) {
24 ; LA32-NEXT: fmul.d $fa0, $fa0, $fa1
29 ; LA64-NEXT: fmul.d $fa0, $fa0, $fa1
31 %mul = fmul double %x, %y