diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-02-05 09:17:18 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2019-02-05 09:17:18 +0000 |
commit | 13cd470407ea3ec707d0f99f515fb30d48d104ab (patch) | |
tree | 9f8f49e48a7b17069999deb827417b11ec01d606 | |
parent | 514c0aee77a3a04764c1956da3e3c269299dde77 (diff) |
PR target/89186
* optabs.c (prepare_cmp_insn): Pass x and y to
emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
* g++.dg/ext/vector36.C: New test.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@268531 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/optabs.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/ext/vector36.C | 6 |
4 files changed, 18 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f7c8b50e142..76a3e18b21c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-02-05 Jakub Jelinek <jakub@redhat.com> + + PR target/89186 + * optabs.c (prepare_cmp_insn): Pass x and y to + emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0). + 2019-02-05 Richard Biener <rguenther@suse.de> PR middle-end/89150 diff --git a/gcc/optabs.c b/gcc/optabs.c index ecda620c161..f2ca4359162 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3917,7 +3917,7 @@ prepare_cmp_insn (rtx x, rtx y, enum rtx_code comparison, rtx size, goto fail; /* Otherwise call a library function. */ - result = emit_block_comp_via_libcall (XEXP (x, 0), XEXP (y, 0), size); + result = emit_block_comp_via_libcall (x, y, size); x = result; y = const0_rtx; diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8a77c005c3b..51879b8ec3c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-02-05 Jakub Jelinek <jakub@redhat.com> + + PR target/89186 + * g++.dg/ext/vector36.C: New test. + 2019-02-05 Alexandre Oliva <aoliva@redhat.com> PR c++/87770 diff --git a/gcc/testsuite/g++.dg/ext/vector36.C b/gcc/testsuite/g++.dg/ext/vector36.C new file mode 100644 index 00000000000..b637f08a4fb --- /dev/null +++ b/gcc/testsuite/g++.dg/ext/vector36.C @@ -0,0 +1,6 @@ +// PR target/89186 +// { dg-do compile } +// { dg-options "-fnon-call-exceptions" } +// { dg-additional-options "-mno-sse" { target i?86-*-* x86_64-*-* } } + +#include "vector27.C" |