1 /* { dg-do compile { target { powerpc*-*-* && ilp32 } } } */
2 /* { dg-require-effective-target powerpc_p9modulo_ok } */
3 /* { dg-options "-mdejagnu-cpu=power9 -O2" } */
5 int ismod (int a
, int b
) { return a
%b
; }
6 unsigned int iumod (unsigned int a
, unsigned int b
) { return a
%b
; }
8 /* { Fail due to RS6000_DISABLE_SCALAR_MODULO. */
9 /* { dg-final { scan-assembler-times {\mmodsw\M} 1 { xfail *-*-* } } } */
10 /* { dg-final { scan-assembler-times {\mmoduw\M} 1 { xfail *-*-* } } } */
11 /* { dg-final { scan-assembler-not {\mmullw\M} { xfail *-*-* } } } */
12 /* { dg-final { scan-assembler-not {\mdivw\M} { xfail *-*-* } } } */
13 /* { dg-final { scan-assembler-not {\mdivwu\M} { xfail *-*-* } } } */