https://gcc.gnu.org/g:2441a5205cbc6f842fe6f9e561e898d70523e991

commit r15-10005-g2441a5205cbc6f842fe6f9e561e898d70523e991
Author: Hans-Peter Nilsson <h...@bitrange.com>
Date:   Thu Jul 17 05:20:55 2025 +0200

    mmix: Define MAX_FIXED_MODE_SIZE
    
    Besides this commit working as a release-branch fix for the
    PR, code inspection shows slightly better code for TImode
    libgcc functions, and a modified
    gcc.c-torture/execute/arith-rand-ll.c (basically s/long
    long/__int128 and cutting out the non-128-bit cases) shows a
    1.4% improvement.  (Coremark code is identical, as
    expected.)
    
            PR middle-end/120935
            * config/mmix/mmix.h (MAX_FIXED_MODE_SIZE): Define.
    
    Co-authored-by: Pietro Monteiro <pie...@sociotechnical.xyz>
    Signed-off-by: Pietro Monteiro <pie...@sociotechnical.xyz>

Diff:
---
 gcc/config/mmix/mmix.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/mmix/mmix.h b/gcc/config/mmix/mmix.h
index 44669e195b4a..354783eccedd 100644
--- a/gcc/config/mmix/mmix.h
+++ b/gcc/config/mmix/mmix.h
@@ -184,6 +184,9 @@ struct GTY(()) machine_function
 /* The lower bits are ignored.  */
 #define STRICT_ALIGNMENT 1
 
+/* With the default, (64 bits), most things still work, but code for
+   e.g. __int128 will be suboptimal. */
+#define MAX_FIXED_MODE_SIZE (2 * BITS_PER_WORD)
 
 /* Node: Type Layout */

Reply via email to