2011-06-04 06:24:54 +08:00
|
|
|
// REQUIRES: x86-registered-target
|
2011-07-10 01:41:47 +08:00
|
|
|
|
|
|
|
// RUN: true
|
|
|
|
// UN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
|
|
|
|
// UN: FileCheck %s < %t
|
2010-04-07 02:46:25 +08:00
|
|
|
|
|
|
|
int test1(int X) {
|
2010-09-07 06:09:27 +08:00
|
|
|
// CHECK: error: invalid instruction mnemonic 'abc'
|
2010-04-07 02:46:25 +08:00
|
|
|
__asm__ ("abc incl %0" : "+r" (X));
|
|
|
|
return X;
|
|
|
|
}
|