1 /* { dg-options "-O3 -mcpu=v6.00.a -mxl-pattern-compare" } */
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-not "mul\tr" } } */
16 /* { dg-final { scan-assembler-not "muli" } } */
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 "pcmpne" } } */
49 /* { dg-final { scan-assembler "pcmpeq" } } */