[Piglit] [PATCH 1/2] cl-program-tester: Add support for parsing floating-point hex constants
Tom Stellard
thomas.stellard at amd.com
Mon May 5 23:55:44 PDT 2014
---
tests/cl/program/program-tester.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/cl/program/program-tester.c b/tests/cl/program/program-tester.c
index 6ff3251..207fefa 100644
--- a/tests/cl/program/program-tester.c
+++ b/tests/cl/program/program-tester.c
@@ -76,8 +76,9 @@
#define REGEX_BOOL_FALSE "(0|false)"
#define REGEX_INT "(([+-]?[[:digit:]]+)|([+-]?0[Xx][[:digit:]abcdefABCDEF]+))"
#define REGEX_UINT "(([+]?[[:digit:]]+)|([+]?0[Xx][[:digit:]abcdefABCDEF]+))"
+#define REGEX_FLOAT_HEX "([+-]?0[Xx][[:digit:]abcdefABCDEF.]+[[:digit:]pP+-]*)"
#define REGEX_FLOAT "(([+-]?[[:digit:]]+(\\.[[:digit:]]+)?e*[+-]*[[:digit:]]*)|" \
- REGEX_PNAN "|" REGEX_NNAN "|" REGEX_PINF "|" \
+ REGEX_FLOAT_HEX "|" REGEX_PNAN "|" REGEX_NNAN "|" REGEX_PINF "|" \
REGEX_NINF ")"
#define REGEX_BOOL_ARRAY REGEX_DEFINE_ARRAY(REGEX_BOOL)
#define REGEX_INT_ARRAY REGEX_DEFINE_ARRAY(REGEX_INT)
--
1.8.1.5
More information about the Piglit
mailing list