blob: cd4d1ffa528d72542648f35eea7353b4197ef500 [file] [log] [blame]
Galina Kistanova0ccb31c2011-06-03 22:24:54 +00001// REQUIRES: x86-registered-target
Evan Chengf0733242011-07-09 07:32:07 +00002// RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
3// RUN: FileCheck %s < %t
Chris Lattner914803f2010-04-06 18:46:25 +00004
5int test1(int X) {
Chris Lattnerfdc90252010-09-06 22:09:27 +00006// CHECK: error: invalid instruction mnemonic 'abc'
Chris Lattner914803f2010-04-06 18:46:25 +00007 __asm__ ("abc incl %0" : "+r" (X));
8 return X;
9}