Fix printf vector for RTZ devices (#2459)

The failure is :

7)testing printf("%.1v4hla",(0.25f,0.5f,1.f,1.5f))
verifyOutputBuffer failed with kernel:
__kernel void test14(void)
{
float4 tmp = (float4)(0.25f,0.5f,1.f,1.5f); printf("%.1v4hla\n",tmp);}
 expected: 0x1p-2,0x1p-1,0x1p+0,0x1.8p+0
 got: 0x1.0p-2,0x1.0p-1,0x1.0p+0,0x1.8p+0

%.1 requires 1 decimal.
This commit is contained in:
Ahmed
2025-08-05 17:19:37 +01:00
committed by GitHub
parent 9809cc931a
commit 4c54ecbd1f

View File

@@ -1352,7 +1352,7 @@ std::vector<std::string> correctBufferVectorRTZ = {
"1.23e+03,9.87e+05,4.99e-04", "1.23e+03,9.87e+05,4.99e-04",
"0x1p-2,0x1p-1,0x1p+0,0x1.8p+0", "0x1.0p-2,0x1.0p-1,0x1.0p+0,0x1.8p+0",
"1,2,3,4,1.5,3.13999,2.5,3.5", "1,2,3,4,1.5,3.13999,2.5,3.5",