[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / 440-mulchwu-2.c
blob96c2afd0da00dc21ff38eb565e9f6cd8fe6e1d8b
1 /* Test generation of mulchwu. on 440. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target ilp32 } */
5 /* { dg-options "-O2 -mdejagnu-cpu=440" } */
7 /* { dg-final { scan-assembler "mulchwu\\. " } } */
9 int
10 f(unsigned int b, unsigned int c)
12 unsigned int a = (unsigned short)b * (c >> 16);
13 if (!a)
14 return 10;
15 return a;