From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1005) id 939A83858D37; Thu, 20 Jan 2022 19:43:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 939A83858D37 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Michael Meissner To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/meissner/heads/work076)] Mark XXSPLTIW/XXSPLTIDP as prefixed -- PR 104136 X-Act-Checkin: gcc X-Git-Author: Michael Meissner X-Git-Refname: refs/users/meissner/heads/work076 X-Git-Oldrev: 6fa29a1bc39077ad22b14df2f6a6d5b83e7eacf3 X-Git-Newrev: 32714598c49395b189e524e4d79dcccf3dd8fdc4 Message-Id: <20220120194307.939A83858D37@sourceware.org> Date: Thu, 20 Jan 2022 19:43:07 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jan 2022 19:43:07 -0000 https://gcc.gnu.org/g:32714598c49395b189e524e4d79dcccf3dd8fdc4 commit 32714598c49395b189e524e4d79dcccf3dd8fdc4 Author: Michael Meissner Date: Thu Jan 20 14:42:46 2022 -0500 Mark XXSPLTIW/XXSPLTIDP as prefixed -- PR 104136 If you compile module_advect_em.F90 with -Ofast -mcpu=power10, one module is large enough that we can't use a single conditional jump to span the function. Instead, GCC has to reverse the condition, and do a conditional jump around an unconditional branch. It turns out when xxspltiw and xxspltdp instructions were generated, they were not marked as being prefixed (i.e. length of 12 bytes instead of 4 bytes). This meant the calculations for the branch length were off, which in turn meant the assembler raised an error because it couldn't do the conditional jump. The fix is to explicitly set the prefixed attribute when we are loading up vector constants with the xxspltiw or xxspltidp instructions. gcc/ 2022-01-20 Michael Meissner PR target/104136 * gcc/config/vsx.md (vsx_mov_64bit): Explicitly set the prefixed attribute for xxspltiw and xxspltidp instructions. (vsx_mov_32bit): Likewise. Diff: --- gcc/config/rs6000/vsx.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md index e84ffb6a6db..c8c891e13f4 100644 --- a/gcc/config/rs6000/vsx.md +++ b/gcc/config/rs6000/vsx.md @@ -1237,7 +1237,12 @@ ", , , *, *, *, *, *, *, *, p9v, *, p10, p10, - , *, *, *, *")]) + , *, *, *, *") + (set_attr "prefixed" + "*, *, *, *, *, *, + *, *, *, *, *, *, + *, yes, + *, *, *, *, *")]) ;; VSX store VSX load VSX move GPR load GPR store GPR move ;; LXVKQ XXSPLTI* @@ -1276,6 +1281,11 @@ ", , , *, *, *, p10, p10, p9v, *, , *, *, + *, *") + (set_attr "prefixed" + "*, *, *, *, *, *, + *, yes, + *, *, *, *, *, *, *")]) ;; Explicit load/store expanders for the builtin functions