Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / 440-mullhwu-2.c
blob9d68f7c95ff84c4aa43dc1fc3cc7709aece550f2
1 /* Test generation of mullhwu. on 440. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-require-effective-target ilp32 } */
5 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=440" } } */
6 /* { dg-options "-O2 -mcpu=440" } */
8 /* { dg-final { scan-assembler "mullhwu\\. " } } */
10 unsigned int
11 f(unsigned int b, unsigned int c)
13 unsigned int a = (unsigned short)b * (unsigned short)c;
14 if (!a)
15 return 10;
16 return a;