From: Richard Sandiford Date: Thu, 11 Jan 2018 13:07:17 +0000 (+0000) Subject: [AArch64] Avoid GET_MODE_NUNITS in v8.4 support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3bd950563d0a7ed8edd7231fc8f19a7e3eaf7bd;p=gcc.git [AArch64] Avoid GET_MODE_NUNITS in v8.4 support This patch replaces GET_MODE_NUNITS in some of the v8.4 support with equivalent values, in preparation for the switch to NUM_POLY_INT_COEFFS==2. 2018-01-11 Richard Sandiford gcc/ * config/aarch64/aarch64-simd.md (aarch64_fmll_low): Avoid GET_MODE_NUNITS. (aarch64_fmll_high): Likewise. (aarch64_fmll_lane_lowv2sf): Likewise. (aarch64_fmll_lane_highv2sf): Likewise. (aarch64_fmllq_laneq_lowv4sf): Likewise. (aarch64_fmllq_laneq_highv4sf): Likewise. (aarch64_fmll_laneq_lowv2sf): Likewise. (aarch64_fmll_laneq_highv2sf): Likewise. (aarch64_fmllq_lane_lowv4sf): Likewise. (aarch64_fmllq_lane_highv4sf): Likewise. From-SVN: r256530 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7ff69030e1a..8654289e58b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2018-01-11 Richard Sandiford + + * config/aarch64/aarch64-simd.md + (aarch64_fmll_low): Avoid GET_MODE_NUNITS. + (aarch64_fmll_high): Likewise. + (aarch64_fmll_lane_lowv2sf): Likewise. + (aarch64_fmll_lane_highv2sf): Likewise. + (aarch64_fmllq_laneq_lowv4sf): Likewise. + (aarch64_fmllq_laneq_highv4sf): Likewise. + (aarch64_fmll_laneq_lowv2sf): Likewise. + (aarch64_fmll_laneq_highv2sf): Likewise. + (aarch64_fmllq_lane_lowv4sf): Likewise. + (aarch64_fmllq_lane_highv4sf): Likewise. + 2018-01-11 Prathamesh Kulkarni PR target/83514 diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index 5b3db910512..792fa1ce478 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -6060,9 +6060,10 @@ VFMLA16_LOW))] "TARGET_F16FML" { - int nunits = GET_MODE_NUNITS (mode); - rtx p1 = aarch64_simd_vect_par_cnst_half (mode, nunits, false); - rtx p2 = aarch64_simd_vect_par_cnst_half (mode, nunits, false); + rtx p1 = aarch64_simd_vect_par_cnst_half (mode, + * 2, false); + rtx p2 = aarch64_simd_vect_par_cnst_half (mode, + * 2, false); emit_insn (gen_aarch64_simd_fmll_low (operands[0], operands[1], @@ -6082,9 +6083,8 @@ VFMLA16_HIGH))] "TARGET_F16FML" { - int nunits = GET_MODE_NUNITS (mode); - rtx p1 = aarch64_simd_vect_par_cnst_half (mode, nunits, true); - rtx p2 = aarch64_simd_vect_par_cnst_half (mode, nunits, true); + rtx p1 = aarch64_simd_vect_par_cnst_half (mode, * 2, true); + rtx p2 = aarch64_simd_vect_par_cnst_half (mode, * 2, true); emit_insn (gen_aarch64_simd_fmll_high (operands[0], operands[1], @@ -6173,9 +6173,7 @@ VFMLA16_LOW))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, - GET_MODE_NUNITS (V4HFmode), - false); + rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, 4, false); rtx lane = aarch64_endian_lane_rtx (V4HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmll_lane_lowv2sf (operands[0], @@ -6196,9 +6194,7 @@ VFMLA16_HIGH))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, - GET_MODE_NUNITS (V4HFmode), - true); + rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, 4, true); rtx lane = aarch64_endian_lane_rtx (V4HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmll_lane_highv2sf (operands[0], @@ -6292,9 +6288,7 @@ VFMLA16_LOW))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, - GET_MODE_NUNITS (V8HFmode), - false); + rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, 8, false); rtx lane = aarch64_endian_lane_rtx (V8HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmllq_laneq_lowv4sf (operands[0], @@ -6314,10 +6308,7 @@ VFMLA16_HIGH))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, - GET_MODE_NUNITS (V8HFmode), - true); - + rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, 8, true); rtx lane = aarch64_endian_lane_rtx (V8HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmllq_laneq_highv4sf (operands[0], @@ -6411,9 +6402,7 @@ VFMLA16_LOW))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, - GET_MODE_NUNITS (V4HFmode), - false); + rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, 4, false); rtx lane = aarch64_endian_lane_rtx (V8HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmll_laneq_lowv2sf (operands[0], @@ -6434,9 +6423,7 @@ VFMLA16_HIGH))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, - GET_MODE_NUNITS(V4HFmode), - true); + rtx p1 = aarch64_simd_vect_par_cnst_half (V4HFmode, 4, true); rtx lane = aarch64_endian_lane_rtx (V8HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmll_laneq_highv2sf (operands[0], @@ -6531,10 +6518,7 @@ VFMLA16_LOW))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, - GET_MODE_NUNITS (V8HFmode), - false); - + rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, 8, false); rtx lane = aarch64_endian_lane_rtx (V4HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmllq_lane_lowv4sf (operands[0], @@ -6554,9 +6538,7 @@ VFMLA16_HIGH))] "TARGET_F16FML" { - rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, - GET_MODE_NUNITS (V8HFmode), - true); + rtx p1 = aarch64_simd_vect_par_cnst_half (V8HFmode, 8, true); rtx lane = aarch64_endian_lane_rtx (V4HFmode, INTVAL (operands[4])); emit_insn (gen_aarch64_simd_fmllq_lane_highv4sf (operands[0],