[ARM] Add poly64_t on AArch32.
Summary:
The poly64 types are guarded with ifdefs for AArch64 only. This is wrong. This
was also incorrectly documented in the ACLE spec, but this has been rectified in
the latest release. See paragraph 13.1.2 "Vector data types":
https://developer.arm.com/docs/101028/latest
This patch was written by Alexandros Lamprineas.
Reviewers: ostannard, sdesmalen, fpetrogalli, labrinea, t.p.northover, LukeGeeson
Reviewed By: ostannard
Subscribers: pbarrio, LukeGeeson, kristof.beyls, danielkiss, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79711
2020-06-05 17:35:59 +08:00
|
|
|
// RUN: %clang_cc1 -triple armv8.2a-arm-none-eabi -target-feature +neon \
|
|
|
|
// RUN: -emit-llvm -o - %s | FileCheck %s
|
|
|
|
|
|
|
|
// Test that we can use the poly64 type on AArch32
|
|
|
|
|
2021-11-14 03:09:01 +08:00
|
|
|
// REQUIRES: aarch64-registered-target || arm-registered-target
|
|
|
|
|
[ARM] Add poly64_t on AArch32.
Summary:
The poly64 types are guarded with ifdefs for AArch64 only. This is wrong. This
was also incorrectly documented in the ACLE spec, but this has been rectified in
the latest release. See paragraph 13.1.2 "Vector data types":
https://developer.arm.com/docs/101028/latest
This patch was written by Alexandros Lamprineas.
Reviewers: ostannard, sdesmalen, fpetrogalli, labrinea, t.p.northover, LukeGeeson
Reviewed By: ostannard
Subscribers: pbarrio, LukeGeeson, kristof.beyls, danielkiss, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D79711
2020-06-05 17:35:59 +08:00
|
|
|
#include <arm_neon.h>
|
|
|
|
|
|
|
|
// CHECK-LABEL: @test_poly64
|
|
|
|
// CHECK: ret i64 %0
|
|
|
|
poly64_t test_poly64(poly64_t a) {
|
|
|
|
return a;
|
|
|
|
}
|