1 // REQUIRES: x86-registered-target 2 3 // RUN: true 4 // UN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1 5 // UN: FileCheck %s < %t 6 // RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm-bc %s -o %t.bc 7 // RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-obj %t.bc -o /dev/null 2>&1 | \ 8 // RUN: FileCheck --check-prefix=CRASH-REPORT %s 9 // CRASH-REPORT: <inline asm>: 10 // CRASH-REPORT: error: invalid instruction mnemonic 'abc' 11 // CRASH-REPORT-NOT: note: diagnostic msg: 12 13 int test1(int X) { 14 // CHECK: error: invalid instruction mnemonic 'abc' 15 __asm__ ("abc incl %0" : "+r" (X)); 16 return X; 17 } 18