From b1b15e0e378c40697374a29f32654edff52d5f14 Mon Sep 17 00:00:00 2001 From: Jan Vesely Date: Fri, 23 Jan 2015 18:51:39 -0500 Subject: cl: Fix tolerance for SP division The specs say 2.5 ulp, but we only take integer values Reviewed-by: Tom Stellard Signed-off-by: Jan Vesely --- tests/cl/program/execute/vector-arithmetic-float4.program_test | 6 +++--- 1 file 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 ## -- cgit v1.2.3