blob: 5ade8cd3948b3fb1a8b7c9261080aff1a6df6c59 [file] [log] [blame]
dan sinclair69313792024-06-13 20:35:21 +00001SKIP: FAILED
2
dan sinclair8f1d2762024-07-31 02:35:40 +00003struct frexp_result_vec4_f16 {
4 vector<float16_t, 4> fract;
5 int4 exp;
6};
7
8struct VertexOutput {
9 float4 pos;
10};
11
12struct vertex_main_outputs {
13 float4 VertexOutput_pos : SV_Position;
14};
15
16
17void frexp_3dd21e() {
18 vector<float16_t, 4> arg_0 = (float16_t(1.0h)).xxxx;
19 frexp_result_vec4_f16 res = frexp(arg_0);
20}
21
22void fragment_main() {
23 frexp_3dd21e();
24}
25
26[numthreads(1, 1, 1)]
27void compute_main() {
28 frexp_3dd21e();
29}
30
31VertexOutput vertex_main_inner() {
32 VertexOutput tint_symbol = (VertexOutput)0;
33 tint_symbol.pos = (0.0f).xxxx;
34 frexp_3dd21e();
35 VertexOutput v = tint_symbol;
36 return v;
37}
38
39vertex_main_outputs vertex_main() {
40 VertexOutput v_1 = vertex_main_inner();
41 vertex_main_outputs v_2 = {v_1.pos};
42 return v_2;
43}
44
45DXC validation failure:
46hlsl.hlsl:17:31: error: use of undeclared identifier 'frexp'
47 frexp_result_vec4_f16 res = frexp(arg_0);
48 ^
49
Antonio Maioranoaef59572024-08-23 21:30:37 +000050
51tint executable returned error: exit status 1