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