1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc -O0 -mtriple=mipsel-linux-gnu -global-isel \ 3; RUN: -verify-machineinstrs %s -o -| FileCheck %s 4; RUN: llc -O0 -mtriple=mipsel-linux-gnu -mattr=+fp64,+mips32r2 -global-isel \ 5; RUN: -verify-machineinstrs %s -o -| FileCheck %s 6 7declare float @llvm.fabs.f32(float) 8define float @fabs_f32(float %a) { 9; CHECK-LABEL: fabs_f32: 10; CHECK: # %bb.0: # %entry 11; CHECK-NEXT: abs.s $f0, $f12 12; CHECK-NEXT: jr $ra 13; CHECK-NEXT: nop 14entry: 15 %0 = call float @llvm.fabs.f32(float %a) 16 ret float %0 17} 18 19declare double @llvm.fabs.f64(double) 20define double @fabs_f64(double %a) { 21; CHECK-LABEL: fabs_f64: 22; CHECK: # %bb.0: # %entry 23; CHECK-NEXT: abs.d $f0, $f12 24; CHECK-NEXT: jr $ra 25; CHECK-NEXT: nop 26entry: 27 %0 = call double @llvm.fabs.f64(double %a) 28 ret double %0 29} 30