1 /* { dg-options "-O3 -mcpu=v6.00.a -mno-xl-soft-mul" } */
3 volatile int m1
, m2
, m3
;
5 volatile long long llp
;
6 volatile unsigned int u1
, u2
, u3
;
8 volatile unsigned long ul1
, ul2
;
9 volatile unsigned long long ullp
;
13 /* { dg-final { scan-assembler "mul\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1])\[^0-9]" } } */
16 /* { dg-final { scan-assembler "muli\tr(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),r(\[0-9]\|\[1-2]\[0-9]\|3\[0-1]),(0x\[0-9a-fA-F]+|\[+-]*\[0-9]+)" } } */
19 /* { dg-final { scan-assembler-not "mulh" } } */
20 llp
= ((long long)l1
* l2
);
22 /* { dg-final { scan-assembler-not "mulhu" } } */
23 ullp
= ((unsigned long long)ul1
* ul2
);
25 /* { dg-final { scan-assembler-not "mulhsu" } } */
26 llp
= ((long long)l1
* ul2
);
28 /* { dg-final { scan-assembler-not "bslli" } } */
31 /* { dg-final { scan-assembler-not "bsll" } } */
34 /* { dg-final { scan-assembler-not "bsrai" } } */
37 /* { dg-final { scan-assembler-not "bsra" } } */
40 /* { dg-final { scan-assembler-not "idiv" } } */
43 /* { dg-final { scan-assembler-not "idivu" } } */
46 /* { dg-final { scan-assembler-not "pcmpne" } } */
49 /* { dg-final { scan-assembler-not "pcmpeq" } } */