aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-08-13 12:59:13 +0100
committerRichard Sandiford <richard.sandiford@arm.com>2020-08-13 12:59:13 +0100
commitdb4615380832d3d3751a70ecdf6fe6c9fe3c4f69 (patch)
treea62ebfbcce150f7be7747673336cf31ce196e5d3 /gcc
parent17dc08edc28f4fc25f6cd7b71f0d0a0d1ec2f833 (diff)
downloadgcc-db4615380832d3d3751a70ecdf6fe6c9fe3c4f69.zip
gcc-db4615380832d3d3751a70ecdf6fe6c9fe3c4f69.tar.gz
gcc-db4615380832d3d3751a70ecdf6fe6c9fe3c4f69.tar.bz2
Revert "AArch64: Add if condition in aarch64_function_value [PR96479]"
This reverts commit b418ccb358e428091fb9c6020fd10be5ae40a17a.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/aarch64/aarch64.c4
-rw-r--r--gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c
index f80594d..b7f5bc7 100644
--- a/gcc/config/aarch64/aarch64.c
+++ b/gcc/config/aarch64/aarch64.c
@@ -5554,10 +5554,6 @@ aarch64_function_value (const_tree type, const_tree func,
if (aarch64_vfp_is_call_or_return_candidate (mode, type, &ag_mode, &count,
NULL, false))
{
- /* TYPE passed in fp/simd registers. */
- if (!TARGET_FLOAT)
- aarch64_err_no_fpadvsimd (ag_mode);
-
gcc_assert (!sve_p);
if (!aarch64_composite_type_p (type, mode))
{
diff --git a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c
index 6f785c9..336402e 100644
--- a/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c
+++ b/gcc/testsuite/gcc.target/aarch64/mgeneral-regs_1.c
@@ -4,6 +4,6 @@ typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
/* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" "" {target "aarch64*-*-*"} .+1 } */
int32x2_t test (int32x2_t a, int32x2_t b)
-{ /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" } */
- return a + b; /* { dg-error "'-mgeneral-regs-only' is incompatible with the use of vector types" } */
+{
+ return a + b;
}