* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr46091-4a.c
blobdebbdaad88a2039dac1c41ede848c3b88fbe1908
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-additional-options "-mregparm=2" { target ia32 } } */
5 int test_1 (int x, int n)
7 n &= 0x1f;
9 x &= ~(0x01 << n);
11 return x;
14 int test_2 (int x, int n)
16 n &= 0x1f;
18 x |= (0x01 << n);
20 return x;
23 int test_3 (int x, int n)
25 n &= 0x1f;
27 x ^= (0x01 << n);
29 return x;
32 /* { dg-final { scan-assembler-not "and\[lq\]\[ \t\]" } } */