diff options
Diffstat (limited to 'clang/test/CodeGen/arm64_vcreate.c')
-rw-r--r-- | clang/test/CodeGen/arm64_vcreate.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm64_vcreate.c b/clang/test/CodeGen/arm64_vcreate.c new file mode 100644 index 00000000000..6447dc4d253 --- /dev/null +++ b/clang/test/CodeGen/arm64_vcreate.c @@ -0,0 +1,23 @@ +// RUN: %clang -O1 -target arm64-apple-ios7 -ffreestanding -S -o - -emit-llvm %s | FileCheck %s +// Test ARM64 SIMD vcreate intrinsics + +/*#include <arm_neon.h>*/ +#include <arm_neon.h> + +float32x2_t test_vcreate_f32(uint64_t a1) { + // CHECK: test_vcreate_f32 + return vcreate_f32(a1); + // CHECK: bitcast {{.*}} to <2 x float> + // CHECK-NEXT: ret +} + +// FIXME enable when scalar_to_vector in backend is fixed. Also, change +// CHECK@ to CHECK<colon> and CHECK-NEXT@ to CHECK-NEXT<colon> +/* +float64x1_t test_vcreate_f64(uint64_t a1) { + // CHECK@ test_vcreate_f64 + return vcreate_f64(a1); + // CHECK@ llvm.arm64.neon.saddlv.i64.v2i32 + // CHECK-NEXT@ ret +} +*/ |