1// RUN: %clang_cc1 -O3 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - %s | FileCheck %s 2// REQUIRES: aarch64-registered-target 3/// Test vrecpss_f32, vrecpsd_f64 ARM64 intrinsics 4 5 6#include <arm_neon.h> 7 8// vrecpss_f32 -> FRECPS Sd,Sa,Sb 9// 10float32_t test_vrecpss_f32(float32_t Vdlow, float32_t Vn) 11{ 12 return vrecpss_f32(Vdlow, Vn); 13 // CHECK: test_vrecpss_f32: 14 // CHECK: frecps s0, s0, s1 15 // CHECK-NEXT: ret 16} 17 18// vrecpsd_f64 -> FRECPS Dd,Da,Db 19// 20float64_t test_vrecpsd_f64(float64_t Vdlow, float64_t Vn) 21{ 22 return vrecpsd_f64(Vdlow, Vn); 23 // CHECK: test_vrecpsd_f64: 24 // CHECK: frecps d0, d0, d1 25 // CHECK-NEXT: ret 26} 27