aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/asm-block-21.c
blob: 8e37f1c8f70d7794ef87b4bceb71a9fff5803618 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* APPLE LOCAL file CW asm blocks */
/* { dg-do assemble { target i?86*-*-darwin* } } */
/* { dg-options { -fasm-blocks -msse3 } } */
/* Radar 4249602 */

void foo() {
  asm {
    mov dx, WORD PTR [ebx]
    lock cmpxchg dword ptr[ecx], ebx 
    inc byte ptr [ecx]
    inc word ptr [ecx]
    inc dword ptr [ecx]
    inc qword ptr [ecx] /* { dg-bogus "no such 386 instruction" "" { xfail *-*-* } } */
  }
}