From 7af392687952608b988bd5a476583106b3f51740 Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Fri, 7 May 2021 15:42:21 +0100 Subject: [PATCH] amdgcn: disable TImode 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/gcn/gcn.c b/gcc/config/gcn/gcn.c index 9660ca6..2baf91d 100644 --- a/gcc/config/gcn/gcn.c +++ b/gcc/config/gcn/gcn.c @@ -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. -- 2.7.4