blob: c3d6eeb1f7d05d65b7731370b64e43ced08d822f [file] [log] [blame]
/* { dg-do compile { target { riscv64*-*-* } } } */
/* { dg-options "-march=rv64gc -mabi=lp64" } */
void
sub (unsigned int wc, unsigned long step, unsigned char *start)
{
do
{
start[--step] = wc;
wc >>= 6;
}
while (step > 1);
}
/* { dg-final { scan-assembler-times "sext.w" 0 } } */