blob: 9d30ae2936714f7e0ff594f24794a9ff3f33726f [file] [log] [blame]
/* { dg-do compile { target { riscv64*-*-* } } } */
/* { dg-options "-march=rv64gc -mabi=lp64 -O2" } */
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 } } */