blob: 66f06ceb53c1d01c605b066745c8f5e3871734e9 [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: %clang_cc1 -O3 -triple arm64-apple-ios7 -ffreestanding -S -o - %s | FileCheck %s
2// REQUIRES: arm64-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}