| Tim Northover | 831d728 | 2014-06-18 08:37:28 +0000 | [diff] [blame] | 1 | // REQUIRES: aarch64-registered-target |
| Bradley Smith | 4da7dd8 | 2014-04-30 10:52:05 +0000 | [diff] [blame] | 2 | // RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \ |
| 3 | // RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s |
| Kevin Qin | 78b8653 | 2015-05-14 08:18:05 +0000 | [diff] [blame] | 4 | // RUN: %clang_cc1 -triple arm64-none-netbsd-gnu -target-feature +neon \ |
| 5 | // RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s |
| Hao Liu | 5e4ce1a | 2013-11-18 06:33:43 +0000 | [diff] [blame] | 6 | |
| Alp Toker | f082e73 | 2014-06-30 01:34:09 +0000 | [diff] [blame] | 7 | // Test whether arm_neon.h works as expected in C++. |
| Hao Liu | 5e4ce1a | 2013-11-18 06:33:43 +0000 | [diff] [blame] | 8 | |
| 9 | #include "arm_neon.h" |
| 10 | |
| 11 | poly64x1_t test_vld1_p64(poly64_t const * ptr) { |
| 12 | // CHECK: test_vld1_p64 |
| 13 | return vld1_p64(ptr); |
| Bradley Smith | 4da7dd8 | 2014-04-30 10:52:05 +0000 | [diff] [blame] | 14 | // CHECK: {{ld1 { v[0-9]+.1d }|ldr d[0-9]+}}, [{{x[0-9]+|sp}}] |
| Hao Liu | 5e4ce1a | 2013-11-18 06:33:43 +0000 | [diff] [blame] | 15 | } |