Home | History | Annotate | Download | only in lower_jumps
      1 #!/bin/bash
      2 #
      3 # This file was generated by create_test_cases.py.
      4 #
      5 # Test that do_lower_jumps respects the lower_main_return
      6 # flag in deciding whether to lower returns in the main
      7 # function.
      8 ../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 0, 0, 0)' <<EOF
      9 ((declare (in) float a) (declare (in) float b)
     10  (function main
     11   (signature void (parameters)
     12    ((if (expression bool > (var_ref a) (constant float (0.000000)))
     13      ((if (expression bool > (var_ref b) (constant float (0.000000)))
     14        ((return))
     15        ()))
     16      ())))))
     17 EOF
     18