From c0db608eacc10741f2559300d8e0af6e460eac18 Mon Sep 17 00:00:00 2001 From: Sven van Haastregt Date: Thu, 29 Aug 2024 14:45:15 +0200 Subject: [PATCH] printf: add missing vector length modifiers (#2044) The length modifier is required with a vector specifier. Fixes https://github.com/KhronosGroup/OpenCL-CTS/issues/2039 Signed-off-by: Sven van Haastregt --- test_conformance/printf/util_printf.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test_conformance/printf/util_printf.cpp b/test_conformance/printf/util_printf.cpp index 759a8dea1d..5b96e8683d 100644 --- a/test_conformance/printf/util_printf.cpp +++ b/test_conformance/printf/util_printf.cpp @@ -1175,18 +1175,18 @@ std::vector printVectorGenParameters = { // Three component vector in scientific notation - { { "" }, "(1234.25f,987654.5f,0.0005f)", "%.2", "e", "float", "3" }, + { { "" }, "(1234.25f,987654.5f,0.0005f)", "%.2", "hle", "float", "3" }, // Four component vector in hexadecimal floating point, lowercase format - { { "" }, "(0.25f,0.5f,1.f,1.5f)", "%", "a", "float", "4" }, + { { "" }, "(0.25f,0.5f,1.f,1.5f)", "%", "hla", "float", "4" }, // Eight component vector in the shortest float representation { { "" }, "(1.f,2.f,3.f,4.f,1.5f,3.14f,2.5f,3.5f)", "%", - "g", + "hlg", "float", "8" }, @@ -1195,17 +1195,17 @@ std::vector printVectorGenParameters = { { { "" }, "(1,2,3,4,5,6,7,8,9,0,32,64,128,256,512,1024)", "%", - "o", + "hlo", "uint", "16" }, // Eight component vector in signed decimal integer format - { { "" }, "(1,-2,3,-4,5,-6,7,-8)", "%+", "i", "int", "8" }, + { { "" }, "(1,-2,3,-4,5,-6,7,-8)", "%+", "hli", "int", "8" }, // Four component vector in unsigned decimal integer format - { { "" }, "(512,1024,262144,1048576)", "%05", "u", "uint", "4" }, + { { "" }, "(512,1024,262144,1048576)", "%05", "hlu", "uint", "4" }, };