HLSL: Fix #802: Preserve promoted child under ! operator.
This commit is contained in:
15
Test/hlsl.logicalConvert.frag
Executable file
15
Test/hlsl.logicalConvert.frag
Executable file
@@ -0,0 +1,15 @@
|
||||
float4 main() : SV_TARGET
|
||||
{
|
||||
if (!(0) && (0) || (!1))
|
||||
return 0.0.xxxx;
|
||||
if (0)
|
||||
return 0.0.xxxx;
|
||||
if (!(bool)0)
|
||||
return 0.0.xxxx;
|
||||
if (!0)
|
||||
return 0.0.xxxx;
|
||||
if (!(bool)1)
|
||||
return 0.0.xxxx;
|
||||
if (!1)
|
||||
return 0.0.xxxx;
|
||||
}
|
||||
Reference in New Issue
Block a user