aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/sections.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@inria.fr>2015-07-08 12:01:30 +0200
committerXavier Leroy <xavier.leroy@inria.fr>2015-07-08 12:01:30 +0200
commitab1ddcd0d579d7e5760c6cfa84adbd55212c47e7 (patch)
tree207e3b1e59da7247d95d28d6ffdd6f4e93bdfc4c /test/regression/sections.c
parent4148ee08387bf953bdbe69f7668597ec0bcccc29 (diff)
downloadcompcert-kvx-ab1ddcd0d579d7e5760c6cfa84adbd55212c47e7.tar.gz
compcert-kvx-ab1ddcd0d579d7e5760c6cfa84adbd55212c47e7.zip
More portable test for fres and fsqrte.
These instructions are approximate and produce different results on different processors. Just check the error bounds specified in the PPC ISA.
Diffstat (limited to 'test/regression/sections.c')
-rw-r--r--test/regression/sections.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/regression/sections.c b/test/regression/sections.c
index 2e0e4e75..adf94e83 100644
--- a/test/regression/sections.c
+++ b/test/regression/sections.c
@@ -13,14 +13,14 @@ struct s {
long long ll;
};
-struct s x; /* normal absolute addressing */
+struct s x = {0, }; /* normal absolute addressing */
#pragma use_section SDATA y
-struct s y; /* small data area */
+struct s y = {0, }; /* small data area */
#pragma section MYDATA ".mydata" ".mydata" far-data RW
#pragma use_section MYDATA z
-struct s z; /* far data area, relative addressing */
+struct s z = {0, }; /* far data area, relative addressing */
#define TEST(msg,ty,x,v1,v2,v3) \
x = v1; \