]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64: Use intrinsic flags information rather than hardcoding FLAG_AUTO_FP
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 18 Apr 2023 13:36:14 +0000 (14:36 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Tue, 18 Apr 2023 13:36:14 +0000 (14:36 +0100)
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.

gcc/config/aarch64/aarch64-builtins.cc

index cc6b7c01fd1d9a3d2ddd1d73326332ed13a25f54..94ad364b99722a1ad2234fa89a240d81e9e1dc8c 100644 (file)
@@ -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,