clspv icon indicating copy to clipboard operation
clspv copied to clipboard

Unable to cast from uchar* to float4*.

Open Masa-tam opened this issue 5 years ago • 2 comments

When the following code is compiled:

__kernel void castErr(__global uchar *pOut)
{
	__global float4* pTmp = (__global float4*) pOut;
	pTmp->w = 0;
}

UNREACHABLE execute at D:\src\clspv\lib\ReplacePointerBitcastPass.cpp:867!

It will output the above error message and exit.

Masa-tam avatar Apr 07 '21 08:04 Masa-tam

The environment in which this occurs is as follows

Source : SHA-1: af397a5ac19fc11afd879e52aeaa4edd21f2b4fd OS : Windows 10 Professional x64 20H2 (Build 19042.867) Compiler : Visual Studio 2019 Version 16.9.3

Masa-tam avatar Apr 07 '21 09:04 Masa-tam

This is fixed with #846 (might already be fixed in main)

rjodinchr avatar May 18 '22 14:05 rjodinchr

This is now passing

rjodinchr avatar Mar 29 '23 10:03 rjodinchr