Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / riscv-types.c
blob1372dc990c4d64032e33bbf0e0061240f090054a
1 // RUN: %clang_cc1 -triple riscv64 -target-feature +v \
2 // RUN: -target-feature +zvfh -ast-print %s | FileCheck %s
4 void bar(void) {
5 // CHECK: __rvv_int64m1_t x0;
6 __rvv_int64m1_t x0;
8 // CHECK: __rvv_float64m1_t x1;
9 __rvv_float64m1_t x1;
11 // CHECK: __rvv_int64m2_t x2;
12 __rvv_int64m2_t x2;
14 // CHECK: __rvv_float64m2_t x3;
15 __rvv_float64m2_t x3;
17 // CHECK: __rvv_int64m4_t x4;
18 __rvv_int64m4_t x4;
20 // CHECK: __rvv_float64m4_t x5;
21 __rvv_float64m4_t x5;
23 // CHECK: __rvv_int64m8_t x6;
24 __rvv_int64m8_t x6;
26 // CHECK: __rvv_float64m8_t x7;
27 __rvv_float64m8_t x7;
29 // CHECK: __rvv_int32m1_t x8;
30 __rvv_int32m1_t x8;
32 // CHECK: __rvv_float32m1_t x9;
33 __rvv_float32m1_t x9;
35 // CHECK: __rvv_int32m2_t x10;
36 __rvv_int32m2_t x10;
38 // CHECK: __rvv_float32m2_t x11;
39 __rvv_float32m2_t x11;
41 // CHECK: __rvv_int32m4_t x12;
42 __rvv_int32m4_t x12;
44 // CHECK: __rvv_float32m4_t x13;
45 __rvv_float32m4_t x13;
47 // CHECK: __rvv_int32m8_t x14;
48 __rvv_int32m8_t x14;
50 // CHECK: __rvv_float32m8_t x15;
51 __rvv_float32m8_t x15;
53 // CHECK: __rvv_int16m1_t x16;
54 __rvv_int16m1_t x16;
56 // CHECK: __rvv_float16m1_t x17;
57 __rvv_float16m1_t x17;
59 // CHECK: __rvv_int16m2_t x18;
60 __rvv_int16m2_t x18;
62 // CHECK: __rvv_float16m2_t x19;
63 __rvv_float16m2_t x19;
65 // CHECK: __rvv_int16m4_t x20;
66 __rvv_int16m4_t x20;
68 // CHECK: __rvv_float16m4_t x21;
69 __rvv_float16m4_t x21;
71 // CHECK: __rvv_int16m8_t x22;
72 __rvv_int16m8_t x22;
74 // CHECK: __rvv_float16m8_t x23;
75 __rvv_float16m8_t x23;
77 // CHECK: __rvv_int8m1_t x24;
78 __rvv_int8m1_t x24;
80 // CHECK: __rvv_int8m2_t x25;
81 __rvv_int8m2_t x25;
83 // CHECK: __rvv_int8m4_t x26;
84 __rvv_int8m4_t x26;
86 // CHECK: __rvv_int8m8_t x27;
87 __rvv_int8m8_t x27;
89 // CHECK: __rvv_bool64_t x28;
90 __rvv_bool64_t x28;
92 // CHECK: __rvv_bool32_t x29;
93 __rvv_bool32_t x29;
95 // CHECK: __rvv_bool16_t x30;
96 __rvv_bool16_t x30;
98 // CHECK: __rvv_bool8_t x31;
99 __rvv_bool8_t x31;
101 // CHECK: __rvv_bool8_t x32;
102 __rvv_bool8_t x32;
104 // CHECK: __rvv_bool8_t x33;
105 __rvv_bool8_t x33;
107 // CHECK: __rvv_bool8_t x34;
108 __rvv_bool8_t x34;
110 // CHECK: __rvv_int32mf2_t x35;
111 __rvv_int32mf2_t x35;
113 // CHECK: __rvv_float32mf2_t x36;
114 __rvv_float32mf2_t x36;
116 // CHECK: __rvv_int16mf4_t x37;
117 __rvv_int16mf4_t x37;
119 // CHECK: __rvv_float16mf4_t x38;
120 __rvv_float16mf4_t x38;
122 // CHECK: __rvv_int16mf2_t x39;
123 __rvv_int16mf2_t x39;
125 // CHECK: __rvv_float16mf2_t x40;
126 __rvv_float16mf2_t x40;
128 // CHECK: __rvv_int8mf8_t x41;
129 __rvv_int8mf8_t x41;
131 // CHECK: __rvv_int8mf4_t x42;
132 __rvv_int8mf4_t x42;
134 // CHECK: __rvv_int8mf2_t x43;
135 __rvv_int8mf2_t x43;
137 // CHECK: __rvv_int32m1x2_t x44;
138 __rvv_int32m1x2_t x44;
141 typedef __rvv_bool4_t vbool4_t;
142 __rvv_bool4_t get_rvv_bool4(void);
143 vbool4_t get_vbool4_t(void);
145 void func1(int sel) {
146 // CHECK: vbool4_t t0 = sel ? get_rvv_bool4() : get_vbool4_t();
147 vbool4_t t0 = sel ? get_rvv_bool4() : get_vbool4_t();