brintos

brintos / llvm-project-archived public Read only

0
0
Text · 547 B · fc8642d Raw
16 lines · cpp
1// REQUIRES: aarch64-registered-target2// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \3// RUN:   -ffp-contract=fast -S -O3 -o - %s | FileCheck %s4// RUN: %clang_cc1 -triple arm64-none-netbsd-gnu -target-feature +neon \5// RUN:   -ffp-contract=fast -S -O3 -o - %s | FileCheck %s6 7// Test whether arm_neon.h works as expected in C++.8 9#include "arm_neon.h"10 11poly64x1_t test_vld1_p64(poly64_t const * ptr) {12  // CHECK: test_vld1_p6413  return vld1_p64(ptr);14  // CHECK:  {{ld1 { v[0-9]+.1d }|ldr d[0-9]+}}, [{{x[0-9]+|sp}}]15}16