2019-10-11 05:40:56 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -flax-vector-conversions=none -emit-llvm -o - %s | FileCheck %s
|
2014-03-29 23:09:45 +08:00
|
|
|
|
2021-11-14 03:09:01 +08:00
|
|
|
// REQUIRES: aarch64-registered-target || arm-registered-target
|
|
|
|
|
2014-03-29 23:09:45 +08:00
|
|
|
#include <arm_neon.h>
|
|
|
|
|
2019-10-11 05:40:56 +08:00
|
|
|
float64x2_t rnd5(float64x2_t a) { return vrndq_f64(a); }
|
2014-03-29 23:09:45 +08:00
|
|
|
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double>
|
|
|
|
|
2019-10-11 05:40:56 +08:00
|
|
|
float64x2_t rnd9(float64x2_t a) { return vrndnq_f64(a); }
|
2021-03-12 19:46:58 +08:00
|
|
|
// CHECK: call <2 x double> @llvm.roundeven.v2f64(<2 x double>
|
2014-03-29 23:09:45 +08:00
|
|
|
|
2019-10-11 05:40:56 +08:00
|
|
|
float64x2_t rnd13(float64x2_t a) { return vrndmq_f64(a); }
|
2014-03-29 23:09:45 +08:00
|
|
|
// CHECK: call <2 x double> @llvm.floor.v2f64(<2 x double>
|
|
|
|
|
2019-10-11 05:40:56 +08:00
|
|
|
float64x2_t rnd18(float64x2_t a) { return vrndpq_f64(a); }
|
2014-03-29 23:09:45 +08:00
|
|
|
// CHECK: call <2 x double> @llvm.ceil.v2f64(<2 x double>
|
|
|
|
|
2019-10-11 05:40:56 +08:00
|
|
|
float64x2_t rnd22(float64x2_t a) { return vrndaq_f64(a); }
|
2014-03-29 23:09:45 +08:00
|
|
|
// CHECK: call <2 x double> @llvm.round.v2f64(<2 x double>
|
|
|
|
|
2019-10-11 05:40:56 +08:00
|
|
|
float64x2_t rnd25(float64x2_t a) { return vrndxq_f64(a); }
|
2014-03-29 23:09:45 +08:00
|
|
|
// CHECK: call <2 x double> @llvm.rint.v2f64(<2 x double>
|
|
|
|
|