1 ; RUN: llc -mtriple=aarch64-apple-darwin -verify-machineinstrs < %s | FileCheck %s 2 ; RUN: llc -mtriple=aarch64-apple-darwin -fast-isel -verify-machineinstrs < %s | FileCheck %s 3 4 define float @fabs_f32(float %a) { 5 ; CHECK-LABEL: fabs_f32 6 ; CHECK: fabs s0, s0 7 %1 = call float @llvm.fabs.f32(float %a) 8 ret float %1 9 } 10 11 define double @fabs_f64(double %a) { 12 ; CHECK-LABEL: fabs_f64 13 ; CHECK: fabs d0, d0 14 %1 = call double @llvm.fabs.f64(double %a) 15 ret double %1 16 } 17 18 declare double @llvm.fabs.f64(double) 19 declare float @llvm.fabs.f32(float) 20