2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / cmpxchg16b-1.c
bloba70169e2771cc4393eb6ad98f49b640d43b8a14b
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mcx16" } */
4 typedef int TItype __attribute__ ((mode (TI)));
6 TItype m_128;
8 void test(TItype x_128)
10 m_128 = __sync_val_compare_and_swap (&m_128, x_128, m_128);
13 /* { dg-final { scan-assembler "cmpxchg16b\[ \\t]" } } */