HLSL: Fix #802: Preserve promoted child under ! operator.

This commit is contained in:
John Kessenich
2017-03-30 23:32:21 -06:00
parent 7e997e2612
commit 18958f6cd2
4 changed files with 253 additions and 4 deletions

15
Test/hlsl.logicalConvert.frag Executable file
View 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;
}