blob: a3af13c37fca6fae54809c09fe4cc34b592bf3da [file] [log] [blame]
// RUN: %clang_cc1 -O3 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - %s | FileCheck %s
// REQUIRES: aarch64-registered-target
/// Test vrecpss_f32, vrecpsd_f64 ARM64 intrinsics
#include <arm_neon.h>
// vrecpss_f32 -> FRECPS Sd,Sa,Sb
//
float32_t test_vrecpss_f32(float32_t Vdlow, float32_t Vn)
{
return vrecpss_f32(Vdlow, Vn);
// CHECK: test_vrecpss_f32:
// CHECK: frecps s0, s0, s1
// CHECK-NEXT: ret
}
// vrecpsd_f64 -> FRECPS Dd,Da,Db
//
float64_t test_vrecpsd_f64(float64_t Vdlow, float64_t Vn)
{
return vrecpsd_f64(Vdlow, Vn);
// CHECK: test_vrecpsd_f64:
// CHECK: frecps d0, d0, d1
// CHECK-NEXT: ret
}