From: Kyrylo Tkachov Date: Tue, 18 Apr 2023 13:36:14 +0000 (+0100) Subject: aarch64: Use intrinsic flags information rather than hardcoding FLAG_AUTO_FP X-Git-Tag: basepoints/gcc-15~10105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b271f6069da6eee4afdbfcac72888a4551191f9;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/config/aarch64/aarch64-builtins.cc b/gcc/config/aarch64/aarch64-builtins.cc index cc6b7c01fd1d..94ad364b9972 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,