1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple thumbv8-linux-gnueabihf -target-cpu cortex-a57 -ffreestanding -O1 -emit-llvm %s -o - | FileCheck %s 2*0a6a1f1dSLionel Sambuc 3*0a6a1f1dSLionel Sambuc #include <arm_neon.h> 4*0a6a1f1dSLionel Sambuc test_vrnda_f32(float32x2_t a)5*0a6a1f1dSLionel Sambucfloat32x2_t test_vrnda_f32(float32x2_t a) { 6*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrnda_f32 7*0a6a1f1dSLionel Sambuc // CHECK: call <2 x float> @llvm.arm.neon.vrinta.v2f32(<2 x float> %a) 8*0a6a1f1dSLionel Sambuc return vrnda_f32(a); 9*0a6a1f1dSLionel Sambuc } 10*0a6a1f1dSLionel Sambuc test_vrndaq_f32(float32x4_t a)11*0a6a1f1dSLionel Sambucfloat32x4_t test_vrndaq_f32(float32x4_t a) { 12*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndaq_f32 13*0a6a1f1dSLionel Sambuc // CHECK: call <4 x float> @llvm.arm.neon.vrinta.v4f32(<4 x float> %a) 14*0a6a1f1dSLionel Sambuc return vrndaq_f32(a); 15*0a6a1f1dSLionel Sambuc } 16*0a6a1f1dSLionel Sambuc test_vrndm_f32(float32x2_t a)17*0a6a1f1dSLionel Sambucfloat32x2_t test_vrndm_f32(float32x2_t a) { 18*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndm_f32 19*0a6a1f1dSLionel Sambuc // CHECK: call <2 x float> @llvm.arm.neon.vrintm.v2f32(<2 x float> %a) 20*0a6a1f1dSLionel Sambuc return vrndm_f32(a); 21*0a6a1f1dSLionel Sambuc } 22*0a6a1f1dSLionel Sambuc test_vrndmq_f32(float32x4_t a)23*0a6a1f1dSLionel Sambucfloat32x4_t test_vrndmq_f32(float32x4_t a) { 24*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndmq_f32 25*0a6a1f1dSLionel Sambuc // CHECK: call <4 x float> @llvm.arm.neon.vrintm.v4f32(<4 x float> %a) 26*0a6a1f1dSLionel Sambuc return vrndmq_f32(a); 27*0a6a1f1dSLionel Sambuc } 28*0a6a1f1dSLionel Sambuc test_vrndn_f32(float32x2_t a)29*0a6a1f1dSLionel Sambucfloat32x2_t test_vrndn_f32(float32x2_t a) { 30*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndn_f32 31*0a6a1f1dSLionel Sambuc // CHECK: call <2 x float> @llvm.arm.neon.vrintn.v2f32(<2 x float> %a) 32*0a6a1f1dSLionel Sambuc return vrndn_f32(a); 33*0a6a1f1dSLionel Sambuc } 34*0a6a1f1dSLionel Sambuc test_vrndnq_f32(float32x4_t a)35*0a6a1f1dSLionel Sambucfloat32x4_t test_vrndnq_f32(float32x4_t a) { 36*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndnq_f32 37*0a6a1f1dSLionel Sambuc // CHECK: call <4 x float> @llvm.arm.neon.vrintn.v4f32(<4 x float> %a) 38*0a6a1f1dSLionel Sambuc return vrndnq_f32(a); 39*0a6a1f1dSLionel Sambuc } 40*0a6a1f1dSLionel Sambuc test_vrndp_f32(float32x2_t a)41*0a6a1f1dSLionel Sambucfloat32x2_t test_vrndp_f32(float32x2_t a) { 42*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndp_f32 43*0a6a1f1dSLionel Sambuc // CHECK: call <2 x float> @llvm.arm.neon.vrintp.v2f32(<2 x float> %a) 44*0a6a1f1dSLionel Sambuc return vrndp_f32(a); 45*0a6a1f1dSLionel Sambuc } 46*0a6a1f1dSLionel Sambuc test_vrndpq_f32(float32x4_t a)47*0a6a1f1dSLionel Sambucfloat32x4_t test_vrndpq_f32(float32x4_t a) { 48*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndpq_f32 49*0a6a1f1dSLionel Sambuc // CHECK: call <4 x float> @llvm.arm.neon.vrintp.v4f32(<4 x float> %a) 50*0a6a1f1dSLionel Sambuc return vrndpq_f32(a); 51*0a6a1f1dSLionel Sambuc } 52*0a6a1f1dSLionel Sambuc test_vrndx_f32(float32x2_t a)53*0a6a1f1dSLionel Sambucfloat32x2_t test_vrndx_f32(float32x2_t a) { 54*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndx_f32 55*0a6a1f1dSLionel Sambuc // CHECK: call <2 x float> @llvm.arm.neon.vrintx.v2f32(<2 x float> %a) 56*0a6a1f1dSLionel Sambuc return vrndx_f32(a); 57*0a6a1f1dSLionel Sambuc } 58*0a6a1f1dSLionel Sambuc test_vrndxq_f32(float32x4_t a)59*0a6a1f1dSLionel Sambucfloat32x4_t test_vrndxq_f32(float32x4_t a) { 60*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndxq_f32 61*0a6a1f1dSLionel Sambuc // CHECK: call <4 x float> @llvm.arm.neon.vrintx.v4f32(<4 x float> %a) 62*0a6a1f1dSLionel Sambuc return vrndxq_f32(a); 63*0a6a1f1dSLionel Sambuc } 64*0a6a1f1dSLionel Sambuc test_vrnd_f32(float32x2_t a)65*0a6a1f1dSLionel Sambucfloat32x2_t test_vrnd_f32(float32x2_t a) { 66*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrnd_f32 67*0a6a1f1dSLionel Sambuc // CHECK: call <2 x float> @llvm.arm.neon.vrintz.v2f32(<2 x float> %a) 68*0a6a1f1dSLionel Sambuc return vrnd_f32(a); 69*0a6a1f1dSLionel Sambuc } 70*0a6a1f1dSLionel Sambuc test_vrndq_f32(float32x4_t a)71*0a6a1f1dSLionel Sambucfloat32x4_t test_vrndq_f32(float32x4_t a) { 72*0a6a1f1dSLionel Sambuc // CHECK-LABEL: test_vrndq_f32 73*0a6a1f1dSLionel Sambuc // CHECK: call <4 x float> @llvm.arm.neon.vrintz.v4f32(<4 x float> %a) 74*0a6a1f1dSLionel Sambuc return vrndq_f32(a); 75*0a6a1f1dSLionel Sambuc } 76