Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #!/bin/bash
  2. #
  3. # This file was generated by create_test_cases.py.
  4. #
  5. # If a loop contains conditional breaks and continues, and
  6. # ends in an unconditional break, then the unconditional break
  7. # needs to be lowered, because it will no longer be at the end
  8. # of the loop after the final break is added.
  9. ../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 0, 1, 1)' <<EOF
  10. ((declare (in) float a) (declare (in) float ba) (declare (in) float bb)
  11.  (declare (in) float ca)
  12.  (declare (in) float cb)
  13.  (function main
  14.   (signature void (parameters)
  15.    ((loop () () () ()
  16.      ((if (expression bool > (var_ref a) (constant float (0.000000)))
  17.        ((if (expression bool > (var_ref ba) (constant float (0.000000)))
  18.          ((if (expression bool > (var_ref bb) (constant float (0.000000)))
  19.            (continue)
  20.            ()))
  21.          ())
  22.         (if (expression bool > (var_ref ca) (constant float (0.000000)))
  23.          ((if (expression bool > (var_ref cb) (constant float (0.000000)))
  24.            (break)
  25.            ()))
  26.          ()))
  27.        ())
  28.       break))))))
  29. EOF
  30.