SKIP: FAILED #include using namespace metal; void frexp_a3f940(threadgroup int2* const tint_symbol_1) { float2 res = frexp(float2(), *(&(*(tint_symbol_1)))); } kernel void compute_main(uint local_invocation_index [[thread_index_in_threadgroup]]) { threadgroup int2 tint_symbol_2; if ((local_invocation_index == 0u)) { tint_symbol_2 = int2(); } threadgroup_barrier(mem_flags::mem_threadgroup); frexp_a3f940(&(tint_symbol_2)); return; } Compilation failed: program_source:5:16: error: no matching function for call to 'frexp' float2 res = frexp(float2(), *(&(*(tint_symbol_1)))); ^~~~~ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:4804:19: note: candidate function not viable: address space mismatch in 2nd argument ('threadgroup int2' (vector of 2 'int' values)), parameter type must be 'metal::int2 &' (aka 'int2 &') METAL_FUNC float2 frexp(float2 x, thread int2 &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:3092:17: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'half' for 1st argument METAL_FUNC half frexp(half x, thread int &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:3336:18: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'metal::half2' (aka 'half2') for 1st argument METAL_FUNC half2 frexp(half2 x, thread int2 &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:3580:18: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'metal::half3' (aka 'half3') for 1st argument METAL_FUNC half3 frexp(half3 x, thread int3 &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:3824:18: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'metal::half4' (aka 'half4') for 1st argument METAL_FUNC half4 frexp(half4 x, thread int4 &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:4560:18: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'float' for 1st argument METAL_FUNC float frexp(float x, thread int &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:5048:19: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'metal::float3' (aka 'float3') for 1st argument METAL_FUNC float3 frexp(float3 x, thread int3 &exp) ^ /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/31001/Libraries/lib/clang/31001.189/include/metal/metal_math:5292:19: note: candidate function not viable: no known conversion from 'float2' (vector of 2 'float' values) to 'metal::float4' (aka 'float4') for 1st argument METAL_FUNC float4 frexp(float4 x, thread int4 &exp) ^ program_source:10:31: warning: equality comparison with extraneous parentheses if ((local_invocation_index == 0u)) { ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ program_source:10:31: note: remove extraneous parentheses around the comparison to silence this warning if ((local_invocation_index == 0u)) { ~ ^ ~ program_source:10:31: note: use '=' to turn this equality comparison into an assignment if ((local_invocation_index == 0u)) { ^~ =