blob: d8d6e47f4356bb8768ca066106d319482fc6f9c9 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-march=rv64gc_zbs -mabi=lp64" } */
/* { dg-skip-if "" { *-*-* } { "-O0" } } */
/* binv */
long
foo0 (long i, long j)
{
return i ^ (1L << j);
}
/* binvi */
long
foo1 (long i)
{
return i ^ (1L << 20);
}
/* { dg-final { scan-assembler-times "binv\t" 1 } } */
/* { dg-final { scan-assembler-times "binvi\t" 1 } } */
/* { dg-final { scan-assembler-not "andi" } } */