(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
riscv/
predef-13.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-march=rv32e -mabi=ilp32e -mcmodel=medlow -misa-spec=2.2" } */
       3  
       4  int main () {
       5  
       6  #ifndef __riscv_arch_test
       7  #error "__riscv_arch_test"
       8  #endif
       9  
      10  #if __riscv_xlen != 32
      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) || (__riscv_e != (1 * 1000 * 1000 + 9 * 1000))
      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    return 0;
      43  }