blob: 1febaa18527260a475160f5c848644fd856efac0 [file] [log] [blame]
Stephen Hines6bcf27b2014-05-29 04:14:42 -07001// RUN: %clang_cc1 -O3 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - %s | FileCheck %s
Stephen Hines651f13c2014-04-23 16:59:28 -07002// 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}