| #!/usr/bin/env bash |
| # |
| # This file was generated by create_test_cases.py. |
| # |
| # Test that a non-void return at the end of a loop is |
| # properly lowered. |
| ../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 1, 0, 0, 1)' <<EOF |
| ((declare (out) float a) (declare (out) float b) |
| (function sub |
| (signature float (parameters) |
| ((loop |
| ((assign (x) (var_ref a) (constant float (1.000000))) |
| (return (constant float (2.000000))))) |
| (assign (x) (var_ref b) (constant float (3.000000))) |
| (return (constant float (4.000000))))))) |
| EOF |