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
4define 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
11define 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
18declare double @llvm.fabs.f64(double)
19declare float @llvm.fabs.f32(float)
20