blob: cd4d1ffa528d72542648f35eea7353b4197ef500 [file] [log] [blame]
Galina Kistanovaf56b4f62011-06-03 22:24:54 +00001// REQUIRES: x86-registered-target
Evan Cheng7b15d182011-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 Lattnere6485c52010-04-06 18:46:25 +00004
5int test1(int X) {
Chris Lattner03483612010-09-06 22:09:27 +00006// CHECK: error: invalid instruction mnemonic 'abc'
Chris Lattnere6485c52010-04-06 18:46:25 +00007 __asm__ ("abc incl %0" : "+r" (X));
8 return X;
9}