Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -triple arm64-apple-ios7.0 -target-feature +neon -ffreestanding -emit-llvm -O1 -o - %s | FileCheck %s
      2 
      3 #include <arm_neon.h>
      4 
      5 uint32x2_t test_vrsqrte_u32(uint32x2_t in) {
      6   // CHECK-LABEL: @test_vrsqrte_u32
      7   // CHECK: call <2 x i32> @llvm.aarch64.neon.ursqrte.v2i32(<2 x i32> %in)
      8   return vrsqrte_u32(in);
      9 }
     10 
     11 float32x2_t test_vrsqrte_f32(float32x2_t in) {
     12   // CHECK-LABEL: @test_vrsqrte_f32
     13   // CHECK: call <2 x float> @llvm.aarch64.neon.frsqrte.v2f32(<2 x float> %in)
     14   return vrsqrte_f32(in);
     15 }
     16 
     17 
     18 uint32x4_t test_vrsqrteq_u32(uint32x4_t in) {
     19   // CHECK-LABEL: @test_vrsqrteq_u32
     20   // CHECK: call <4 x i32> @llvm.aarch64.neon.ursqrte.v4i32(<4 x i32> %in)
     21   return vrsqrteq_u32(in);
     22 }
     23 
     24 float32x4_t test_vrsqrteq_f32(float32x4_t in) {
     25   // CHECK-LABEL: @test_vrsqrteq_f32
     26   // CHECK: call <4 x float> @llvm.aarch64.neon.frsqrte.v4f32(<4 x float> %in)
     27   return vrsqrteq_f32(in);
     28 }
     29 
     30 
     31 float32x2_t test_vrsqrts_f32(float32x2_t est, float32x2_t val) {
     32   // CHECK-LABEL: @test_vrsqrts_f32
     33   // CHECK: call <2 x float> @llvm.aarch64.neon.frsqrts.v2f32(<2 x float> %est, <2 x float> %val)
     34   return vrsqrts_f32(est, val);
     35 }
     36 
     37 
     38 float32x4_t test_vrsqrtsq_f32(float32x4_t est, float32x4_t val) {
     39   // CHECK-LABEL: @test_vrsqrtsq_f32
     40   // CHECK: call <4 x float> @llvm.aarch64.neon.frsqrts.v4f32(<4 x float> %est, <4 x float> %val)
     41   return vrsqrtsq_f32(est, val);
     42 }
     43 
     44