blob: d9bde61cd2b0b682ae880ca62c25a023489c4319 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */
/* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */
/* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" "-Oz" } } */
int
not_int_int (int x, int cond, int v)
{
if (cond)
return v;
return x;
}
long
not_long_int (long x, int cond, long v)
{
if (cond)
return v;
return x;
}
int
not_int_long (int x, long cond, int v)
{
if (cond)
return v;
return x;
}
long
not_long_long (long x, int cond, long v)
{
if (cond)
return v;
return x;
}
/* { dg-final { scan-assembler-times "th.mvnez" 4 } } */