(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
riscv/
xtheadcondmov-mvnez-imm-cond.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-march=rv32gc_xtheadcondmov" { target { rv32 } } } */
       3  /* { dg-options "-march=rv64gc_xtheadcondmov" { target { rv64 } } } */
       4  /* { dg-skip-if "" { *-*-* } { "-O0" "-Os" "-Og" } } */
       5  
       6  int
       7  not_int_int (int x, int cond)
       8  {
       9    if (cond)
      10      return 1025;
      11    return x;
      12  }
      13  
      14  long
      15  not_long_int (long x, int cond)
      16  {
      17    if (cond)
      18      return 1025l;
      19    return x;
      20  }
      21  
      22  int
      23  not_int_long (int x, long cond)
      24  {
      25    if (cond)
      26      return 1025;
      27    return x;
      28  }
      29  
      30  long
      31  not_long_long (long x, int cond)
      32  {
      33    if (cond)
      34      return 1025l;
      35    return x;
      36  }
      37  
      38  /* { dg-final { scan-assembler-times "th.mvnez" 4 } } */