Debian Codegraph @

gcc/testsuite/gcc.target/riscv/predef-27.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=rv64im_zvfh -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_m)
19 #error "__riscv_m"
20 #endif
21
22 #if !defined(__riscv_f)
23 #error "__riscv_f"
24 #endif
25
26 #if !defined(__riscv_zvfh)
27 #error "__riscv_zvfh"
28 #endif
29
30 #if !defined(__riscv_zfhmin)
31 #error "__riscv_zfhmin"
32 #endif
33
34 #if defined(__riscv_zvfhmin)
35 #error "__riscv_zvfhmin"
36 #endif
37
38 #if defined(__riscv_v)
39 #error "__riscv_v"
40 #endif
41
42 #if defined(__riscv_d)
43 #error "__riscv_d"
44 #endif
45
46 #if defined(__riscv_c)
47 #error "__riscv_c"
48 #endif
49
50 #if defined(__riscv_a)
51 #error "__riscv_a"
52 #endif
53
54 #if defined(__riscv_zfh)
55 #error "__riscv_zfh"
56 #endif
57
58 return 0;
59 }