]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: allow SImode in VCC_HI [PR120722]
authorAndrew Stubbs <ams@baylibre.com>
Fri, 20 Jun 2025 16:43:37 +0000 (16:43 +0000)
committerAndrew Stubbs <ams@baylibre.com>
Fri, 20 Jun 2025 16:50:19 +0000 (16:50 +0000)
This patch isn't fully tested yet, but it fixes the build failure, so that
will do for now.  SImode was not allowed in VCC_HI because there were issues,
way back before the port went upstream, so it's possible we'll find out what
those issues were again soon.

gcc/ChangeLog:

PR target/120722
* config/gcn/gcn.cc (gcn_hard_regno_mode_ok): Allow SImode in VCC_HI.

gcc/config/gcn/gcn.cc

index 31a59dd6f22fd55d5ef60bd61772cf9083d79a2f..2d8dfa3232e2f6fce10dd5cafcb86d4b9036a42e 100644 (file)
@@ -585,9 +585,8 @@ gcn_hard_regno_mode_ok (unsigned int regno, machine_mode mode)
     case XNACK_MASK_HI_REG:
     case TBA_HI_REG:
     case TMA_HI_REG:
-      return mode == SImode;
     case VCC_HI_REG:
-      return false;
+      return mode == SImode;
     case EXEC_HI_REG:
       return mode == SImode /*|| mode == V32BImode */ ;
     case SCC_REG: