blob: 05751a8e690a285dd9d8015ee9f1c45cd83b7e93 [file] [log] [blame]
Galina Kistanovaf56b4f62011-06-03 22:24:54 +00001// REQUIRES: x86-registered-target
Chris Lattnera5f58b02011-07-09 17:41:47 +00002
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
Steven Wu15b385f2015-02-12 02:06:55 +00006// 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:
Chris Lattnere6485c52010-04-06 18:46:25 +000012
13int test1(int X) {
Chris Lattner03483612010-09-06 22:09:27 +000014// CHECK: error: invalid instruction mnemonic 'abc'
Chris Lattnere6485c52010-04-06 18:46:25 +000015 __asm__ ("abc incl %0" : "+r" (X));
16 return X;
17}