diff mbox series

[v2,02/76] tests/tcg: Do not require FE_TOWARDZERO

Message ID 20200828141929.77854-3-richard.henderson@linaro.org
State Superseded
Headers show
Series target/microblaze improvements | expand

Commit Message

Richard Henderson Aug. 28, 2020, 2:18 p.m. UTC
This is optional in ISO C, and not all cpus provide it.

Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

---
 tests/tcg/multiarch/float_convs.c | 2 ++
 tests/tcg/multiarch/float_madds.c | 2 ++
 2 files changed, 4 insertions(+)

-- 
2.25.1

Comments

Philippe Mathieu-Daudé Aug. 31, 2020, 5:31 p.m. UTC | #1
Le ven. 28 août 2020 16:22, Richard Henderson <richard.henderson@linaro.org>
a écrit :

> This is optional in ISO C, and not all cpus provide it.

>

> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>

> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>

>


Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>


---
>  tests/tcg/multiarch/float_convs.c | 2 ++

>  tests/tcg/multiarch/float_madds.c | 2 ++

>  2 files changed, 4 insertions(+)

>

> diff --git a/tests/tcg/multiarch/float_convs.c

> b/tests/tcg/multiarch/float_convs.c

> index 47e24b8b16..e9be75c2d5 100644

> --- a/tests/tcg/multiarch/float_convs.c

> +++ b/tests/tcg/multiarch/float_convs.c

> @@ -30,7 +30,9 @@ float_mapping round_flags[] = {

>  #ifdef FE_DOWNWARD

>      { FE_DOWNWARD, "downwards" },

>  #endif

> +#ifdef FE_TOWARDZERO

>      { FE_TOWARDZERO, "to zero" }

> +#endif

>  };

>

>  static void print_input(float input)

> diff --git a/tests/tcg/multiarch/float_madds.c

> b/tests/tcg/multiarch/float_madds.c

> index eceb4ae38b..e422608ccd 100644

> --- a/tests/tcg/multiarch/float_madds.c

> +++ b/tests/tcg/multiarch/float_madds.c

> @@ -29,7 +29,9 @@ float_mapping round_flags[] = {

>  #ifdef FE_DOWNWARD

>      { FE_DOWNWARD, "downwards" },

>  #endif

> +#ifdef FE_TOWARDZERO

>      { FE_TOWARDZERO, "to zero" }

> +#endif

>  };

>

>

> --

> 2.25.1

>

>

>
<div dir="auto"><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 28 août 2020 16:22, Richard Henderson &lt;<a href="mailto:richard.henderson@linaro.org">richard.henderson@linaro.org</a>&gt; a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is optional in ISO C, and not all cpus provide it.<br>
<br>
Reviewed-by: Edgar E. Iglesias &lt;<a href="mailto:edgar.iglesias@xilinx.com" target="_blank" rel="noreferrer">edgar.iglesias@xilinx.com</a>&gt;<br>

Signed-off-by: Richard Henderson &lt;<a href="mailto:richard.henderson@linaro.org" target="_blank" rel="noreferrer">richard.henderson@linaro.org</a>&gt;<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><span style="font-family:sans-serif;font-size:13.696px">Reviewed-by: Philippe Mathieu-Daudé &lt;</span><a href="mailto:f4bug@amsat.org" style="text-decoration:none;color:rgb(66,133,244);font-family:sans-serif;font-size:13.696px">f4bug@amsat.org</a><span style="font-family:sans-serif;font-size:13.696px">&gt;</span><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

---<br>
 tests/tcg/multiarch/float_convs.c | 2 ++<br>
 tests/tcg/multiarch/float_madds.c | 2 ++<br>
 2 files changed, 4 insertions(+)<br>
<br>
diff --git a/tests/tcg/multiarch/float_convs.c b/tests/tcg/multiarch/float_convs.c<br>
index 47e24b8b16..e9be75c2d5 100644<br>
--- a/tests/tcg/multiarch/float_convs.c<br>
+++ b/tests/tcg/multiarch/float_convs.c<br>
@@ -30,7 +30,9 @@ float_mapping round_flags[] = {<br>
 #ifdef FE_DOWNWARD<br>
     { FE_DOWNWARD, &quot;downwards&quot; },<br>
 #endif<br>
+#ifdef FE_TOWARDZERO<br>
     { FE_TOWARDZERO, &quot;to zero&quot; }<br>
+#endif<br>
 };<br>
<br>
 static void print_input(float input)<br>
diff --git a/tests/tcg/multiarch/float_madds.c b/tests/tcg/multiarch/float_madds.c<br>
index eceb4ae38b..e422608ccd 100644<br>
--- a/tests/tcg/multiarch/float_madds.c<br>
+++ b/tests/tcg/multiarch/float_madds.c<br>
@@ -29,7 +29,9 @@ float_mapping round_flags[] = {<br>
 #ifdef FE_DOWNWARD<br>
     { FE_DOWNWARD, &quot;downwards&quot; },<br>
 #endif<br>
+#ifdef FE_TOWARDZERO<br>
     { FE_TOWARDZERO, &quot;to zero&quot; }<br>
+#endif<br>
 };<br>
<br>
<br>
-- <br>
2.25.1<br>
<br>
<br>
</blockquote></div></div></div>
diff mbox series

Patch

diff --git a/tests/tcg/multiarch/float_convs.c b/tests/tcg/multiarch/float_convs.c
index 47e24b8b16..e9be75c2d5 100644
--- a/tests/tcg/multiarch/float_convs.c
+++ b/tests/tcg/multiarch/float_convs.c
@@ -30,7 +30,9 @@  float_mapping round_flags[] = {
 #ifdef FE_DOWNWARD
     { FE_DOWNWARD, "downwards" },
 #endif
+#ifdef FE_TOWARDZERO
     { FE_TOWARDZERO, "to zero" }
+#endif
 };
 
 static void print_input(float input)
diff --git a/tests/tcg/multiarch/float_madds.c b/tests/tcg/multiarch/float_madds.c
index eceb4ae38b..e422608ccd 100644
--- a/tests/tcg/multiarch/float_madds.c
+++ b/tests/tcg/multiarch/float_madds.c
@@ -29,7 +29,9 @@  float_mapping round_flags[] = {
 #ifdef FE_DOWNWARD
     { FE_DOWNWARD, "downwards" },
 #endif
+#ifdef FE_TOWARDZERO
     { FE_TOWARDZERO, "to zero" }
+#endif
 };