HLSL: Fix #802: Preserve promoted child under ! operator.
This commit is contained in:
parent
7e997e2612
commit
18958f6cd2
4 changed files with 253 additions and 4 deletions
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue