Add parse-time constant folding for isinf() and isnan().

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@22621 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-08-06 20:22:51 +00:00
parent af262433ab
commit 1b42f2a33d
3 changed files with 119 additions and 73 deletions

View File

@@ -1,69 +1,81 @@
0:? Sequence
0:24 Function Definition: main( (void)
0:24 Function Parameters:
0:26 Sequence
0:26 Sequence
0:26 move second child to first child (4-component vector of float)
0:26 'dx' (4-component vector of float)
0:26 dPdx (4-component vector of float)
0:26 'inv' (smooth in 4-component vector of float)
0:33 move second child to first child (4-component vector of float)
0:33 'FragColor' (out 4-component vector of float)
0:33 2.000000
0:33 6.000000
0:33 3.000000
0:33 171.887339
0:38 move second child to first child (4-component vector of float)
0:38 'FragColor' (out 4-component vector of float)
0:38 3.000000
0:38 2.000000
0:38 0.001593
0:38 -0.999999
0:39 move second child to first child (2-component vector of float)
0:39 'out2' (out 2-component vector of float)
0:39 5.600000
0:39 5.800000
0:26 Function Definition: main( (void)
0:26 Function Parameters:
0:28 Sequence
0:28 Sequence
0:28 move second child to first child (4-component vector of float)
0:28 'dx' (4-component vector of float)
0:28 dPdx (4-component vector of float)
0:28 'inv' (smooth in 4-component vector of float)
0:35 move second child to first child (4-component vector of float)
0:35 'FragColor' (out 4-component vector of float)
0:35 2.000000
0:35 6.000000
0:35 3.000000
0:35 171.887339
0:40 move second child to first child (4-component vector of float)
0:40 'out3' (out 4-component vector of float)
0:40 20.085537
0:40 2.302585
0:40 16.000000
0:40 8.000000
0:41 move second child to first child (4-component vector of float)
0:41 'out4' (out 4-component vector of float)
0:41 10.000000
0:41 0.100000
0:41 4.700000
0:41 10.900000
0:42 move second child to first child (4-component vector of int)
0:42 'out5' (out 4-component vector of int)
0:42 8 (const int)
0:42 17 (const int)
0:42 -1 (const int)
0:42 1 (const int)
0:43 move second child to first child (3-component vector of float)
0:43 'out6' (out 3-component vector of float)
0:43 -1.000000
0:43 1.000000
0:43 0.000000
0:44 move second child to first child (4-component vector of float)
0:44 'out7' (out 4-component vector of float)
0:44 4.000000
0:44 -4.000000
0:44 5.000000
0:44 -5.000000
0:45 move second child to first child (4-component vector of float)
0:45 'out8' (out 4-component vector of float)
0:45 4.000000
0:45 5.000000
0:45 4.000000
0:45 -6.000000
0:40 'FragColor' (out 4-component vector of float)
0:40 3.000000
0:40 2.000000
0:40 0.001593
0:40 -0.999999
0:41 move second child to first child (2-component vector of float)
0:41 'out2' (out 2-component vector of float)
0:41 5.600000
0:41 5.800000
0:42 move second child to first child (4-component vector of float)
0:42 'out3' (out 4-component vector of float)
0:42 20.085537
0:42 2.302585
0:42 16.000000
0:42 8.000000
0:43 move second child to first child (4-component vector of float)
0:43 'out4' (out 4-component vector of float)
0:43 10.000000
0:43 0.100000
0:43 4.700000
0:43 10.900000
0:44 move second child to first child (4-component vector of int)
0:44 'out5' (out 4-component vector of int)
0:44 8 (const int)
0:44 17 (const int)
0:44 -1 (const int)
0:44 1 (const int)
0:45 move second child to first child (3-component vector of float)
0:45 'out6' (out 3-component vector of float)
0:45 -1.000000
0:45 1.000000
0:45 0.000000
0:46 move second child to first child (4-component vector of float)
0:46 'out9' (out 4-component vector of float)
0:46 8.000000
0:46 'out7' (out 4-component vector of float)
0:46 4.000000
0:46 -4.000000
0:46 0.345000
0:46 0.400000
0:46 5.000000
0:46 -5.000000
0:47 move second child to first child (4-component vector of float)
0:47 'out8' (out 4-component vector of float)
0:47 4.000000
0:47 5.000000
0:47 4.000000
0:47 -6.000000
0:48 move second child to first child (4-component vector of float)
0:48 'out9' (out 4-component vector of float)
0:48 8.000000
0:48 -4.000000
0:48 0.345000
0:48 0.400000
0:49 move second child to first child (4-component vector of float)
0:49 'out10' (out 4-component vector of float)
0:49 1.000000
0:49 1.000000
0:49 0.000000
0:49 0.000000
0:50 move second child to first child (4-component vector of float)
0:50 'out11' (out 4-component vector of float)
0:50 0.000000
0:50 0.000000
0:50 1.000000
0:50 0.000000
0:? Linker Objects
0:? 'inv' (smooth in 4-component vector of float)
0:? 'FragColor' (out 4-component vector of float)
@@ -75,4 +87,6 @@
0:? 'out7' (out 4-component vector of float)
0:? 'out8' (out 4-component vector of float)
0:? 'out9' (out 4-component vector of float)
0:? 'out10' (out 4-component vector of float)
0:? 'out11' (out 4-component vector of float)