i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-bic-bitmask-6.c
blob6b8a45c75b68a6e7d6a75d51694e1f321435a55c
1 /* { dg-skip-if "missing optab for vectorization" { sparc*-*-* } } */
2 /* { dg-additional-options "-O3 -fdump-tree-dce -w" } */
4 #include <stdint.h>
6 __attribute__((noinline, noipa))
7 void fun1(uint32_t *x, int n)
9 for (int i = 0; i < (n & -16); i++)
10 x[i] = (x[i]&(~255)) <= 0;
13 __attribute__((noinline, noipa, optimize("O1")))
14 void fun2(uint32_t *x, int n)
16 for (int i = 0; i < (n & -16); i++)
17 x[i] = (x[i]&(~255)) <= 0;
20 #include "../bic-bitmask.h"
22 /* { dg-final { scan-tree-dump-times {<=\s*.+\{ 255,.+\}} 1 dce7 { target vect_int } } } */
23 /* { dg-final { scan-tree-dump-not {&\s*.+\{ 4294967040,.+\}} dce7 { target vect_int } } } */
24 /* { dg-final { scan-tree-dump-not {\s+bic\s+} dce7 { target { aarch64*-*-* } } } } */