summaryrefslogtreecommitdiffstats
path: root/src/glsl/tests/lower_jumps/lower_returns_main_true.opt_test
blob: 939ec8b0e4ef4061d0b74d3e05ac26ed02ce45b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash
#
# This file was generated by create_test_cases.py.
#
# Test that do_lower_jumps respects the lower_main_return
# flag in deciding whether to lower returns in the main
# function.
../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 1, 0, 0)' <<EOF
((declare (in) float a) (declare (in) float b)
 (function main
  (signature void (parameters)
   ((if (expression bool > (var_ref a) (constant float (0.000000)))
     ((if (expression bool > (var_ref b) (constant float (0.000000)))
       ((return))
       ()))
     ())))))
EOF