Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 -O1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - -emit-llvm %s | FileCheck %s
      2 // Test ARM64 SIMD vcreate intrinsics
      3 
      4 /*#include <arm_neon.h>*/
      5 #include <arm_neon.h>
      6 
      7 float32x2_t test_vcreate_f32(uint64_t a1) {
      8   // CHECK: test_vcreate_f32
      9   return vcreate_f32(a1);
     10   // CHECK: bitcast {{.*}} to <2 x float>
     11   // CHECK-NEXT: ret
     12 }
     13 
     14 // FIXME enable when scalar_to_vector in backend is fixed.  Also, change
     15 // CHECK@ to CHECK<colon> and CHECK-NEXT@ to CHECK-NEXT<colon>
     16 /*
     17 float64x1_t test_vcreate_f64(uint64_t a1) {
     18   // CHECK@ test_vcreate_f64
     19   return vcreate_f64(a1);
     20   // CHECK@ llvm.aarch64.neon.saddlv.i64.v2i32
     21   // CHECK-NEXT@ ret
     22 }
     23 */
     24