From f111f4340f58c01a2cf869084e47344da8fb81e1 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 4 Jul 2017 10:44:40 +0200 Subject: [PATCH] re PR target/81175 (EXC_BAD_ACCESS in ::slpeel_duplicate_current_defs_from_edges(edge, edge, edge, edge) at is-a.h:192) PR target/81175 * gcc.target/i386/pr69255-2.c (foo): Use the return value of the gather. From-SVN: r249951 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.target/i386/pr69255-2.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c52ad0024ff..110573314ac 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-07-04 Jakub Jelinek + + PR target/81175 + * gcc.target/i386/pr69255-2.c (foo): Use the return value of the + gather. + 2017-07-04 Martin Liska PR ipa/81214 diff --git a/gcc/testsuite/gcc.target/i386/pr69255-2.c b/gcc/testsuite/gcc.target/i386/pr69255-2.c index ebe6828e188..af3be6c31a2 100644 --- a/gcc/testsuite/gcc.target/i386/pr69255-2.c +++ b/gcc/testsuite/gcc.target/i386/pr69255-2.c @@ -12,7 +12,8 @@ __attribute__ ((__vector_size__ (16))) int b; void foo (const long long *p) { - __builtin_ia32_gather3siv4di (a, p, b, 1, 1); /* { dg-error "needs isa option -m32 -mavx512vl" } */ + volatile __attribute__ ((__vector_size__ (32))) long long c; + c = __builtin_ia32_gather3siv4di (a, p, b, 1, 1); /* { dg-error "needs isa option -m32 -mavx512vl" } */ /* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } .-1 } */ /* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } .-2 } */ } -- 2.30.2