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 'fneg' LLVM IR: https://llvm.org/docs/LangRef.html#fneg-instruction
7 define float @fneg_s(float %x) {
10 ; LA32-NEXT: fneg.s $fa0, $fa0
15 ; LA64-NEXT: fneg.s $fa0, $fa0
21 define double @fneg_d(double %x) {
24 ; LA32-NEXT: fneg.d $fa0, $fa0
29 ; LA64-NEXT: fneg.d $fa0, $fa0