From 13d8be91218950707bf38bdb1c554cf1605e4501 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Mon, 1 Feb 2021 23:03:49 +0000 Subject: [PATCH] aarch64: Update flags for bfloat16 builtins This patch updates the flags for the bfloat16 builtins. The bfdot ones aren't affected by the FPCR/FPSR so can be AUTO_FP whereas the bfmlal ones follow the normal floating-point instructions and get FP. gcc/ChangeLog: * config/aarch64/aarch64-simd-builtins.def (bfdot_lane, bfdot_laneq): Use AUTO_FP flags. (bfmlalb_lane, bfmlalt_lane, bfmlalb_lane_q, bfmlalt_lane_q): Use FP flags. --- gcc/config/aarch64/aarch64-simd-builtins.def | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/aarch64/aarch64-simd-builtins.def b/gcc/config/aarch64/aarch64-simd-builtins.def index d711e5c..92dc27e 100644 --- a/gcc/config/aarch64/aarch64-simd-builtins.def +++ b/gcc/config/aarch64/aarch64-simd-builtins.def @@ -816,8 +816,8 @@ /* Implemented by aarch64_bfdot{_lane}{q}. */ VAR2 (TERNOP, bfdot, 0, AUTO_FP, v2sf, v4sf) - VAR2 (QUADOP_LANE_PAIR, bfdot_lane, 0, ALL, v2sf, v4sf) - VAR2 (QUADOP_LANE_PAIR, bfdot_laneq, 0, ALL, v2sf, v4sf) + VAR2 (QUADOP_LANE_PAIR, bfdot_lane, 0, AUTO_FP, v2sf, v4sf) + VAR2 (QUADOP_LANE_PAIR, bfdot_laneq, 0, AUTO_FP, v2sf, v4sf) /* Implemented by aarch64_bfmmlaqv4sf */ VAR1 (TERNOP, bfmmlaq, 0, AUTO_FP, v4sf) @@ -825,10 +825,10 @@ /* Implemented by aarch64_bfmlal{_lane{q}}v4sf */ VAR1 (TERNOP, bfmlalb, 0, FP, v4sf) VAR1 (TERNOP, bfmlalt, 0, FP, v4sf) - VAR1 (QUADOP_LANE, bfmlalb_lane, 0, ALL, v4sf) - VAR1 (QUADOP_LANE, bfmlalt_lane, 0, ALL, v4sf) - VAR1 (QUADOP_LANE, bfmlalb_lane_q, 0, ALL, v4sf) - VAR1 (QUADOP_LANE, bfmlalt_lane_q, 0, ALL, v4sf) + VAR1 (QUADOP_LANE, bfmlalb_lane, 0, FP, v4sf) + VAR1 (QUADOP_LANE, bfmlalt_lane, 0, FP, v4sf) + VAR1 (QUADOP_LANE, bfmlalb_lane_q, 0, FP, v4sf) + VAR1 (QUADOP_LANE, bfmlalt_lane_q, 0, FP, v4sf) /* Implemented by aarch64_vget_lo/hi_halfv8bf. */ VAR1 (UNOP, vget_lo_half, 0, AUTO_FP, v8bf) -- 2.7.4