diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-03-08 09:05:26 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-03-08 09:05:26 +0100 |
commit | 12b81409d97f6d617f58f974c6cbedc6bf9f5552 (patch) | |
tree | e28d36ef30c47e5c005b603f9409e4f8cc2fdf92 /gcc/testsuite | |
parent | 324167d12292e1c608fe4cab5145f4e96eeebfe6 (diff) | |
download | gcc-12b81409d97f6d617f58f974c6cbedc6bf9f5552.zip gcc-12b81409d97f6d617f58f974c6cbedc6bf9f5552.tar.gz gcc-12b81409d97f6d617f58f974c6cbedc6bf9f5552.tar.bz2 |
re PR target/70110 (ICE at -O3 in the 32-bit mode in set_last_insn, at emit-rtl.h:420)
PR target/70110
* config/i386/i386.c (scalar_chain::make_vector_copies,
scalar_chain::convert_reg): Call end_sequence in between
get_insns and emit_conversion_insns rather than after both
calls.
* gcc.dg/pr70110.c: New test.
From-SVN: r234057
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr70110.c | 39 |
2 files changed, 44 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0dfe344..28229ee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-03-08 Jakub Jelinek <jakub@redhat.com> + + PR target/70110 + * gcc.dg/pr70110.c: New test. + 2016-03-07 Martin Jambor <mjambor@suse.cz> * c-c++-common/gomp/clauses-1.c: Remove dg-options. diff --git a/gcc/testsuite/gcc.dg/pr70110.c b/gcc/testsuite/gcc.dg/pr70110.c new file mode 100644 index 0000000..42bbe3a --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr70110.c @@ -0,0 +1,39 @@ +/* PR target/70110 */ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ +/* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */ + +int a, c, d, f, h; +long long b; + +static inline void +foo (void) +{ + if (a) + foo (); + b = c; +} + +static inline void +bar (int p) +{ + if (p) + f = 0; + b |= c; +} + +void +baz (int g, int i) +{ + for (b = d; (d = 1) != 0; ) + { + if (a) + foo (); + b |= c; + bar (h); + bar (g); + bar (h); + bar (i); + bar (h); + } +} |