]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c
2 /* { dg-skip-if "ARC700 always has mpy option on" { arc700 } } */
3 /* { dg-skip-if "ARC600 doesn't have mpy instruction" { arc6xx } } */
4 /* { dg-options "-O2 -mmpy-option=0 -w" } */
8 /* Hide value propagation from the optimizers. */
17 mulhigh (unsigned a
, unsigned b
)
19 return (unsigned long long) a
* b
>> 32;
25 if (mulhigh (id (0x12345678), id (0x90abcdef)) != 0xa49a83e)
30 /* { dg-final { scan-assembler-not "mpyhu\[ \t\]" } } */
31 /* { dg-final { scan-assembler-not "@__muldi3" } } */
32 /* { dg-final { scan-assembler "@__umulsi3_highpart" } } */