blob: c6aea9d1eaaca037214521c96e1c0ebfe7cf9764 [file] [log] [blame]
John Kessenich7e997e22017-03-30 22:09:30 -06001float condf;
2int condi;
3float1 condf1;
4int1 condi1;
5
6float4 main() : SV_Target0
7{
8 float4 a = float4(2.0, 2.0, 2.0, 2.0);
9 if (condi)
10 return a + 1.0;
11 if (condf)
12 return a + 2.0;
13 if (condf1)
14 return a + 3.0;
15 if (condi1)
16 return a + 4.0;
17 if (condi && condf || condf1)
18 return a + 5.0;
19
20 float f = condf;
21 while (f) { --f; }
22
23 int i = condi;
24 do { --i; } while (i);
25
26 for (; i; ) { --i; }
27
28 float g = condf ? 7.0 : 8.0;
29 a += g;
30
31 return a - 1.0;
32}