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 9660ca6..2baf91d 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.