https://gcc.gnu.org/g:80d0e10847ec64799deb53061fb50876043116fe
commit r15-4288-g80d0e10847ec64799deb53061fb50876043116fe Author: H.J. Lu <hjl.to...@gmail.com> Date: Sat Oct 12 05:22:52 2024 +0800 gcc.target/i386/pr115749.c: Use word_mode integer Use word_mode integer with func so that 64-bit integer is used with x32. * gcc.target/i386/pr115749.c (uword): New. (func): Replace unsigned long with uword. Signed-off-by: H.J. Lu <hjl.to...@gmail.com> Diff: --- gcc/testsuite/gcc.target/i386/pr115749.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/i386/pr115749.c b/gcc/testsuite/gcc.target/i386/pr115749.c index 82505d603efb..e7946d77861f 100644 --- a/gcc/testsuite/gcc.target/i386/pr115749.c +++ b/gcc/testsuite/gcc.target/i386/pr115749.c @@ -4,7 +4,9 @@ /* { dg-final { scan-assembler-times "imul" 2 } } */ /* { dg-final { scan-assembler-not "sal" } } */ -unsigned long func(unsigned long x) +typedef unsigned int uword __attribute__ ((mode (word))); + +uword func(uword x) { return x % 240; }