From: H.J. Lu Date: Fri, 11 Oct 2024 21:22:52 +0000 (+0800) Subject: gcc.target/i386/pr115749.c: Use word_mode integer X-Git-Tag: basepoints/gcc-16~5265 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80d0e10847ec64799deb53061fb50876043116fe;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/gcc.target/i386/pr115749.c b/gcc/testsuite/gcc.target/i386/pr115749.c index 82505d603ef..e7946d77861 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; }