Ties Stuij 1e44731833 [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 13:04:21 +01:00

13 lines
292 B
C

// 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
#include <arm_neon.h>
// CHECK-LABEL: @test_poly64
// CHECK: ret i64 %0
poly64_t test_poly64(poly64_t a) {
return a;
}