Skip to content

Commit

Permalink
printf: add missing vector length modifiers (#2044)
Browse files Browse the repository at this point in the history
The length modifier is required with a vector specifier.

Fixes #2039

Signed-off-by: Sven van Haastregt <sven.vanhaastregt@arm.com>
  • Loading branch information
svenvh authored Aug 29, 2024
1 parent 0a00a1f commit c0db608
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test_conformance/printf/util_printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1175,18 +1175,18 @@ std::vector<printDataGenParameters> 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" },

Expand All @@ -1195,17 +1195,17 @@ std::vector<printDataGenParameters> 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" },

};

Expand Down

0 comments on commit c0db608

Please sign in to comment.