From: Torbjörn SVENSSON <[email protected]>
GCC might be compiled with -fshort-enum enabled by default.
For those targets, it is important that the enum type is not packed into
something smaller than int, or vectorization will not match.
gcc/testsuite/ChangeLog:
PR testsuite/124112
* gcc.dg/vect/vect-early-break_65.c: Prevent packing enum to a
smaller object.
Signed-off-by: Torbjörn SVENSSON <[email protected]>
---
gcc/testsuite/gcc.dg/vect/vect-early-break_65.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_65.c
b/gcc/testsuite/gcc.dg/vect/vect-early-break_65.c
index 8763a5ff04ec..366922b9dbab 100644
--- a/gcc/testsuite/gcc.dg/vect/vect-early-break_65.c
+++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_65.c
@@ -4,7 +4,7 @@
/* { dg-require-effective-target vect_int } */
/* { dg-additional-options "-Ofast -fno-vect-cost-model
-fdump-tree-vect-details" } */
-enum a { b };
+enum a { b, dummy = __INT_MAX__ };
struct {
enum a c;
--
2.54.0