Skip to content
Snippets Groups Projects
Commit 80b52301 authored by Tamar Christina's avatar Tamar Christina
Browse files

middle-end: Add early break conditions to vect-switch-search-line-fast.c [PR118451]

When this test was added initially it didn't add the early break effective
target tests.

This means that the test was "passing" (as in, it was failing to vectorize)
because many targets don't support early break.

But the test should not have been run for these targets.  When the vectorizer
learned PFA the test started passing for 32-bit targets. I had adjusted the
testcase but fail to notice the requirements were wrong.

Thus this adds the extra guards, and on targets that don't support early break
this test will move to UNSUPPORTED, which is what it should have been all
along...

gcc/testsuite/ChangeLog:

	PR testsuite/118451
	* gcc.dg/vect/vect-switch-search-line-fast.c: Add early_break guards.
parent 3d678ad9
No related branches found
No related tags found
No related merge requests found
/* PR116126 -- once this works use this version in libcpp/lex.c. /* PR116126 -- once this works use this version in libcpp/lex.c.
This also requires working value range propagation for s/end. */ This also requires working value range propagation for s/end. */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-add-options vect_early_break } */
/* { dg-require-effective-target vect_early_break } */
/* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int } */
const unsigned char *search_line_fast2 (const unsigned char *s, const unsigned char *search_line_fast2 (const unsigned char *s,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment