| Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 1 | // REQUIRES: arm64-registered-target |
| 2 | // RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \ |
| Hao Liu | dd12780 | 2013-11-18 06:33:43 +0000 | [diff] [blame] | 3 | // RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s |
| 4 | |
| 5 | // Test whether arm_neon.h can be used in .cpp file. |
| 6 | |
| 7 | #include "arm_neon.h" |
| 8 | |
| 9 | poly64x1_t test_vld1_p64(poly64_t const * ptr) { |
| 10 | // CHECK: test_vld1_p64 |
| 11 | return vld1_p64(ptr); |
| Stephen Hines | 6bcf27b | 2014-05-29 04:14:42 -0700 | [diff] [blame] | 12 | // CHECK: {{ld1 { v[0-9]+.1d }|ldr d[0-9]+}}, [{{x[0-9]+|sp}}] |
| Hao Liu | dd12780 | 2013-11-18 06:33:43 +0000 | [diff] [blame] | 13 | } |