blob: 86873b97f27c5fe6e1495ac0cf3471b7782a8067 [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-O1 -save-temps -fdump-tree-dce" } */
#include <stdint.h>
__attribute__((noinline, noipa))
void fun1(uint32_t *x, int n)
{
for (int i = 0; i < (n & -16); i++)
x[i] = (x[i]&(~255)) <= 0;
}
__attribute__((noinline, noipa, optimize("O0")))
void fun2(uint32_t *x, int n)
{
for (int i = 0; i < (n & -16); i++)
x[i] = (x[i]&(~255)) <= 0;
}
#include "bic-bitmask.h"
/* { dg-final { scan-tree-dump-times {<=\s* 255} 1 dce7 { target vect_int } } } */
/* { dg-final { scan-tree-dump-not {&\s* 4294967040} dce7 { target vect_int } } } */