~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/glsl/tests/lower_jumps/lower_breaks_5.opt_test

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# This file was generated by create_test_cases.py.
 
4
#
 
5
# If a loop contains a conditional break at the bottom of it,
 
6
# it should not be lowered if it is in the else-clause, even if
 
7
# there are statements preceding the break.
 
8
../../glsl_test optpass --quiet --input-ir 'do_lower_jumps(0, 0, 0, 0, 1)' <<EOF
 
9
((declare (in) float b) (declare (out) float a) (declare (out) float c)
 
10
 (function main
 
11
  (signature void (parameters)
 
12
   ((loop () () () ()
 
13
     ((assign (x) (var_ref a) (constant float (1.000000)))
 
14
      (if (expression bool > (var_ref b) (constant float (0.000000))) ()
 
15
       ((assign (x) (var_ref c) (constant float (1.000000))) break))))))))
 
16
EOF