mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-26 14:58:59 -04:00

This patch adds support for vrndi_f32() and vrndiq_f32() intrinsics in AArch32 mode and for vrndns_f32() intrinsic in AArch64 mode. Differential Revision: https://reviews.llvm.org/D48829 llvm-svn: 337690
23 lines
850 B
C
23 lines
850 B
C
// RUN: %clang_cc1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -emit-llvm -o - %s | FileCheck %s
|
|
|
|
#include <arm_neon.h>
|
|
|
|
int64x2_t rnd5(float64x2_t a) { return vrndq_f64(a); }
|
|
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double>
|
|
|
|
int64x2_t rnd9(float64x2_t a) { return vrndnq_f64(a); }
|
|
// CHECK: call <2 x double> @llvm.aarch64.neon.frintn.v2f64(<2 x double>
|
|
|
|
int64x2_t rnd13(float64x2_t a) { return vrndmq_f64(a); }
|
|
// CHECK: call <2 x double> @llvm.floor.v2f64(<2 x double>
|
|
|
|
int64x2_t rnd18(float64x2_t a) { return vrndpq_f64(a); }
|
|
// CHECK: call <2 x double> @llvm.ceil.v2f64(<2 x double>
|
|
|
|
int64x2_t rnd22(float64x2_t a) { return vrndaq_f64(a); }
|
|
// CHECK: call <2 x double> @llvm.round.v2f64(<2 x double>
|
|
|
|
int64x2_t rnd25(float64x2_t a) { return vrndxq_f64(a); }
|
|
// CHECK: call <2 x double> @llvm.rint.v2f64(<2 x double>
|
|
|