James Molloy | 75f5f9e | 2014-04-16 15:33:48 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -O1 -triple arm64-apple-ios7 -target-feature +neon -ffreestanding -S -o - -emit-llvm %s | FileCheck %s |
Tim Northover | a2ee433 | 2014-03-29 15:09:45 +0000 | [diff] [blame] | 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); |
Tim Northover | 573cbee | 2014-05-24 12:52:07 +0000 | [diff] [blame] | 20 | // CHECK@ llvm.aarch64.neon.saddlv.i64.v2i32 |
Tim Northover | a2ee433 | 2014-03-29 15:09:45 +0000 | [diff] [blame] | 21 | // CHECK-NEXT@ ret |
| 22 | } |
| 23 | */ |