(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
riscv/
predef-21.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -march=rv64i_zfh -mabi=lp64f -mcmodel=medlow -misa-spec=20191213" } */
       3  
       4  int main () {
       5  
       6  #ifndef __riscv_arch_test
       7  #error "__riscv_arch_test"
       8  #endif
       9  
      10  #if __riscv_xlen != 64
      11  #error "__riscv_xlen"
      12  #endif
      13  
      14  #if !defined(__riscv_i)
      15  #error "__riscv_i"
      16  #endif
      17  
      18  #if defined(__riscv_c)
      19  #error "__riscv_c"
      20  #endif
      21  
      22  #if defined(__riscv_e)
      23  #error "__riscv_e"
      24  #endif
      25  
      26  #if defined(__riscv_a)
      27  #error "__riscv_a"
      28  #endif
      29  
      30  #if defined(__riscv_m)
      31  #error "__riscv_m"
      32  #endif
      33  
      34  #if !defined(__riscv_f)
      35  #error "__riscv_f"
      36  #endif
      37  
      38  #if defined(__riscv_d)
      39  #error "__riscv_d"
      40  #endif
      41  
      42  #if defined(__riscv_v)
      43  #error "__riscv_v"
      44  #endif
      45  
      46  #if !defined(__riscv_zfh)
      47  #error "__riscv_zfh"
      48  #endif
      49  
      50  #if !defined(__riscv_zfhmin)
      51  #error "__riscv_zfhmin"
      52  #endif
      53  
      54  #if !defined(__riscv_zicsr)
      55  #error "__riscv_zicsr"
      56  #endif
      57  
      58    return 0;
      59  }