public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Andrew Pinski <pinskia@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r13-1970] [RSIC-V] Fix 32bit riscv with zbs extension enabled
Date: Fri,  5 Aug 2022 02:43:09 +0000 (GMT)	[thread overview]
Message-ID: <20220805024309.EF4C03858016@sourceware.org> (raw)

https://gcc.gnu.org/g:ffe4f55aa1bb18cc2793a4335450f34c33c9d01c

commit r13-1970-gffe4f55aa1bb18cc2793a4335450f34c33c9d01c
Author: Andrew Pinski <apinski@marvell.com>
Date:   Thu Aug 4 19:34:55 2022 -0700

    [RSIC-V] Fix 32bit riscv with zbs extension enabled
    
    The problem here was a disconnect between splittable_const_int_operand
    predicate and the function riscv_build_integer_1 for 32bits with zbs enabled.
    The splittable_const_int_operand predicate had a check for TARGET_64BIT which
    was not needed so this patch removed it.
    
    Committed as obvious after a build for risc32-elf configured with --with-arch=rv32imac_zba_zbb_zbc_zbs.
    
    Thanks,
    Andrew Pinski
    
    gcc/ChangeLog:
    
            * config/riscv/predicates.md (splittable_const_int_operand):
            Remove the check for TARGET_64BIT for single bit const values.

Diff:
---
 gcc/config/riscv/predicates.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/config/riscv/predicates.md b/gcc/config/riscv/predicates.md
index 90db5dfcdd5..e98db2cb574 100644
--- a/gcc/config/riscv/predicates.md
+++ b/gcc/config/riscv/predicates.md
@@ -76,7 +76,7 @@
 
   /* Check whether the constant can be loaded in a single
      instruction with zbs extensions.  */
-  if (TARGET_64BIT && TARGET_ZBS && SINGLE_BIT_MASK_OPERAND (INTVAL (op)))
+  if (TARGET_ZBS && SINGLE_BIT_MASK_OPERAND (INTVAL (op)))
     return false;
 
   /* Otherwise check whether the constant can be loaded in a single


                 reply	other threads:[~2022-08-05  2:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220805024309.EF4C03858016@sourceware.org \
    --to=pinskia@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).