From: Uros Bizjak Date: Wed, 19 Nov 2014 20:38:59 +0000 (+0100) Subject: re PR target/63947 (Wrong fcmov suffix) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9da8fef02f9857bfea1b5a8ac3389d3c12fb9437;p=gcc.git re PR target/63947 (Wrong fcmov suffix) PR target/63947 * config/i386/i386.c (put_condition_code) : Output "b" and "nb" suffix for FP mode. testsuite/ChangeLog: PR target/63947 * gcc.target/i386/pr63947.c: New test. From-SVN: r217810 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6c888f6c7cb..c8e18f64167 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 Uros Bizjak + + PR target/63947 + * config/i386/i386.c (put_condition_code) : + Output "b" and "nb" suffix for FP mode. + 2014-11-19 Jan Hubicka PR bootstrap/63963 @@ -850,12 +856,12 @@ 2014-11-19 Renlin Li - PR target/63424 + PR target/63424 * config/aarch64/aarch64-simd.md (v2di3): New. 2014-11-19 Renlin Li - PR middle-end/63762 + PR middle-end/63762 * ira.c (ira): Update preferred class. 2014-11-19 Jakub Jelinek diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 7f4e2cc0697..fffddfc7311 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -14953,7 +14953,7 @@ put_condition_code (enum rtx_code code, machine_mode mode, bool reverse, if (mode == CCmode) suffix = "b"; else if (mode == CCCmode) - suffix = "c"; + suffix = fp ? "b" : "c"; else gcc_unreachable (); break; @@ -14976,9 +14976,9 @@ put_condition_code (enum rtx_code code, machine_mode mode, bool reverse, break; case GEU: if (mode == CCmode) - suffix = fp ? "nb" : "ae"; + suffix = "nb"; else if (mode == CCCmode) - suffix = "nc"; + suffix = fp ? "nb" : "nc"; else gcc_unreachable (); break; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3a2dbf7c86a..bc1435584fc 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,12 @@ +2014-11-19 Uros Bizjak + + PR target/63947 + * gcc.target/i386/pr63947.c: New test. + 2014-11-19 Paolo Carlini PR c++/55425 - * g++.dg/cpp0x/constexpr-__func__.C + * g++.dg/cpp0x/constexpr-__func__.C: New. 2014-11-19 Renlin Li diff --git a/gcc/testsuite/gcc.target/i386/pr63947.c b/gcc/testsuite/gcc.target/i386/pr63947.c new file mode 100644 index 00000000000..3c0a67a73ae --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr63947.c @@ -0,0 +1,9 @@ +/* PR target/63947 */ +/* { dg-do assemble } */ +/* { dg-options "-Os" } */ +/* { dg-additional-options "-march=i686" { target ia32 } } */ + +long double foo (unsigned a, unsigned b) +{ + return a + b < a; +}