dan sinclair | 999d93a | 2024-08-15 20:42:57 +0000 | [diff] [blame] | 1 | SKIP: INVALID |
Zhaoming Jiang | 6c4de8b | 2023-07-17 09:37:19 +0000 | [diff] [blame] | 2 | |
| 3 | uint tint_bitcast_from_f16(vector<float16_t, 2> src) { |
| 4 | uint2 r = f32tof16(float2(src)); |
| 5 | return asuint(uint((r.x & 0xffff) | ((r.y & 0xffff) << 16))); |
| 6 | } |
| 7 | |
| 8 | [numthreads(1, 1, 1)] |
| 9 | void f() { |
Antonio Maiorano | cf2f4d6 | 2024-08-22 05:37:05 +0000 | [diff] [blame] | 10 | vector<float16_t, 2> a = vector<float16_t, 2>(float16_t(1.0h), float16_t(2.0h)); |
| 11 | uint b = tint_bitcast_from_f16(a); |
Zhaoming Jiang | 6c4de8b | 2023-07-17 09:37:19 +0000 | [diff] [blame] | 12 | return; |
| 13 | } |
| 14 | FXC validation failure: |
Antonio Maiorano | 4f97c0e | 2024-08-22 05:42:29 +0000 | [diff] [blame] | 15 | <scrubbed_path>(1,35-43): error X3000: syntax error: unexpected token 'float16_t' |
| 16 | <scrubbed_path>(2,29-31): error X3004: undeclared identifier 'src' |
| 17 | <scrubbed_path>(2,22-32): error X3014: incorrect number of arguments to numeric-type constructor |
Zhaoming Jiang | 6c4de8b | 2023-07-17 09:37:19 +0000 | [diff] [blame] | 18 | |
Antonio Maiorano | aef5957 | 2024-08-23 21:30:37 +0000 | [diff] [blame] | 19 | |
| 20 | tint executable returned error: exit status 1 |