aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>2023-04-18 14:36:14 +0100
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>2023-04-18 14:36:14 +0100
commit8b271f6069da6eee4afdbfcac72888a4551191f9 (patch)
tree9d4d3c4d90d5b21f759a17ddfd57995dcd66e57f
parentfc8eaf42393d462e0454fa36a41fa313408b87cb (diff)
downloadgcc-8b271f6069da6eee4afdbfcac72888a4551191f9.zip
gcc-8b271f6069da6eee4afdbfcac72888a4551191f9.tar.gz
gcc-8b271f6069da6eee4afdbfcac72888a4551191f9.tar.bz2
aarch64: Use intrinsic flags information rather than hardcoding FLAG_AUTO_FP
We record the flags to use for the intrinsics in aarch64_simd_intrinsic_data, so use it when initialising them rather than using a hardcoded FLAG_AUTO_FP. The current vreinterpret intrinsics use FLAG_AUTO_FP anyway so this patch is an NFC but this will be needed as we migrate more builtins into the intrinsics infrastructure. Bootstrapped and tested on aarch64-none-linux-gnu. gcc/ChangeLog: * config/aarch64/aarch64-builtins.cc (aarch64_init_simd_intrinsics): Take builtin flags from intrinsic data rather than hardcoded FLAG_AUTO_FP.
-rw-r--r--gcc/config/aarch64/aarch64-builtins.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/aarch64/aarch64-builtins.cc b/gcc/config/aarch64/aarch64-builtins.cc
index cc6b7c0..94ad364 100644
--- a/gcc/config/aarch64/aarch64-builtins.cc
+++ b/gcc/config/aarch64/aarch64-builtins.cc
@@ -1356,7 +1356,7 @@ aarch64_init_simd_intrinsics (void)
}
tree ftype = build_function_type (return_type, args);
- tree attrs = aarch64_get_attributes (FLAG_AUTO_FP, d->op_modes[0]);
+ tree attrs = aarch64_get_attributes (d->flags, d->op_modes[0]);
unsigned int code
= (d->fcode << AARCH64_BUILTIN_SHIFT | AARCH64_BUILTIN_GENERAL);
tree fndecl = simulate_builtin_function_decl (input_location, d->name,