summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2015-01-23 18:51:39 -0500
committerTom Stellard <thomas.stellard@amd.com>2015-01-26 09:44:30 -0500
commitb1b15e0e378c40697374a29f32654edff52d5f14 (patch)
tree9dd2623da251b5bd9a4bc941f16d0cc4c2f7e482
parent40f70e8a725f9c56228e0e6ed80f05b137f958f3 (diff)
cl: Fix tolerance for SP division
The specs say 2.5 ulp, but we only take integer values Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
-rw-r--r--tests/cl/program/execute/vector-arithmetic-float4.program_test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cl/program/execute/vector-arithmetic-float4.program_test b/tests/cl/program/execute/vector-arithmetic-float4.program_test
index 7127bb9e0..a80a9731a 100644
--- a/tests/cl/program/execute/vector-arithmetic-float4.program_test
+++ b/tests/cl/program/execute/vector-arithmetic-float4.program_test
@@ -91,21 +91,21 @@ name: pos div pos, neg div neg, pos div neg, neg div pos
kernel_name: div
arg_in: 1 float4 8.5 -21.25 11.25 -21
arg_in: 2 float4 4.25 -5 -3 5.25
-arg_out: 0 buffer float4[1] 2 4.25 -3.75 -4
+arg_out: 0 buffer float4[1] 2 4.25 -3.75 -4 tolerance 2
[test]
name: 0 div pos, 0 div neg, pos div 0, neg div 0
kernel_name: div
arg_in: 1 float4 0 0 11.25 -21
arg_in: 2 float4 4.25 -5 0 0
-arg_out: 0 buffer float4[1] 0 0 inf -inf
+arg_out: 0 buffer float4[1] 0 0 inf -inf tolerance 2
[test]
name: 0 div inf, inf div 0, inf div inf, nan div 0
kernel_name: div
arg_in: 1 float4 0 inf inf nan
arg_in: 2 float4 inf 0 inf 0
-arg_out: 0 buffer float4[1] 0 inf nan nan
+arg_out: 0 buffer float4[1] 0 inf nan nan tolerance 2
## Unary plus ##