]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
amdgcn: disable TImode
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 7 May 2021 14:42:21 +0000 (15:42 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Fri, 7 May 2021 16:27:56 +0000 (17:27 +0100)
The TImode support works for moves only, which has worked in most case up
to now, but no longer.

We still need TImode to exist for the instructions that take two DImode
values packed together, but we don't need to advertise this to the middle-end.

gcc/ChangeLog:

* config/gcn/gcn.c (gcn_scalar_mode_supported_p): Disable TImode.

gcc/config/gcn/gcn.c

index 9660ca6eaa4104faecc420ac9f236609c45b82f4..2baf91d2f1f98c580c2c1d5f8839361fd4c67829 100644 (file)
@@ -361,7 +361,7 @@ gcn_scalar_mode_supported_p (scalar_mode mode)
          || mode == HImode /* || mode == HFmode  */
          || mode == SImode || mode == SFmode
          || mode == DImode || mode == DFmode
-         || mode == TImode);
+         /*|| mode == TImode*/); /* TI is used for back-end purposes only.  */
 }
 
 /* Implement TARGET_CLASS_MAX_NREGS.