/* { dg-do run } */ /* { dg-additional-options "-mavx2" { target avx2_runtime } } */ typedef unsigned char u8; __attribute__((noipa)) static void check(const u8 * v) { if (*v != 15) __builtin_trap(); } __attribute__((noipa)) static void bug(void) { u8 in_lanes[32]; for (unsigned i = 0; i < 32; i += 2) { in_lanes[i + 0] = 0; in_lanes[i + 1] = ((u8)0xff) >> (i & 7); } check(&in_lanes[13]); } int main() { bug(); }