Commit ab7ea2f7 authored by Chad Versace's avatar Chad Versace
Browse files

glsl-1.xx: Move some tests from glslparsertest into spec directory

Move tests div-by-zero-* and modulus-zero-* into their respective
spec/glsl-1.xx/compiler/arithmetic-operators directory.

Also add to each test an appropriate quote from the spec.
parent dbdf182e
......@@ -2,6 +2,12 @@
// expect_result: pass
// glsl_version: 1.20
// [end config]
//
// Division by zero is legal for floating point values.
//
// From section 5.9 of the GLSL 1.20 spec:
// Dividing by zero does not cause an exception but does result in an
// unspecified value.
#version 120
......
......@@ -2,6 +2,12 @@
// expect_result: pass
// glsl_version: 1.20
// [end config]
//
// Division by zero is legal for integer values.
//
// From section 5.9 of the GLSL 1.20 spec:
// Dividing by zero does not cause an exception but does result in an
// unspecified value.
#version 120
......
......@@ -2,6 +2,12 @@
// expect_result: pass
// glsl_version: 1.30
// [end config]
//
// Division by zero is legal for integer values.
//
// From section 5.9 of the GLSL 1.30 spec:
// Dividing by zero does not cause an exception but does result in an
// unspecified value.
#version 130
......
......@@ -2,6 +2,12 @@
// expect_result: pass
// glsl_version: 1.30
// [end config]
//
// A zero modulus is legal.
//
// From section 5.9 of the GLSL 1.30 spec:
// The resulting value [of a modulus operation] is undefined for any
// component computed with a second operand that is zero,
#version 130
......
......@@ -2,6 +2,12 @@
// expect_result: pass
// glsl_version: 1.30
// [end config]
//
// A zero modulus is legal.
//
// From section 5.9 of the GLSL 1.30 spec:
// The resulting value [of a modulus operation] is undefined for any
// component computed with a second operand that is zero,
#version 130
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment