21 lines · plain
1; RUN: llc -mtriple=arm64-apple-darwin -verify-machineinstrs < %s | FileCheck %s2; RUN: llc -mtriple=arm64-apple-darwin -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s3 4define float @test_sqrt_f32(float %a) {5; CHECK-LABEL: test_sqrt_f326; CHECK: fsqrt s0, s07 %res = call float @llvm.sqrt.f32(float %a)8 ret float %res9}10declare float @llvm.sqrt.f32(float) nounwind readnone11 12define double @test_sqrt_f64(double %a) {13; CHECK-LABEL: test_sqrt_f6414; CHECK: fsqrt d0, d015 %res = call double @llvm.sqrt.f64(double %a)16 ret double %res17}18declare double @llvm.sqrt.f64(double) nounwind readnone19 20 21