/contrib/sdk/sources/Mesa/mesa-9.2.5/src/glsl/tests/lower_jumps/lower_returns_4.opt_test |
---|
0,0 → 1,14 |
#!/bin/bash |
# |
# This file was generated by create_test_cases.py. |
# |
# Test that returns are properly lowered when they occur in |
# both branches of an if-statement. |
../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 1, 0, 0, 0)' <<EOF |
((declare (in) float a) |
(function sub |
(signature float (parameters) |
((if (expression bool > (var_ref a) (constant float (0.000000))) |
((return (constant float (1.000000)))) |
((return (constant float (2.000000))))))))) |
EOF |