Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / asm-errors.c
bloba959896df1ed6b013951e4b95f7771bb19cd818e
1 // REQUIRES: x86-registered-target
3 // RUN: not %clang_cc1 -triple i386-apple-darwin10 -emit-obj %s -o /dev/null > %t 2>&1
4 // RUN: FileCheck %s < %t
5 // RUN: not %clang -target i386-apple-darwin10 -fembed-bitcode -c %s -o /dev/null 2>&1 | \
6 // RUN: FileCheck --check-prefix=CRASH-REPORT %s
7 // CRASH-REPORT: <inline asm>:
8 // CRASH-REPORT: error: invalid instruction mnemonic 'abc'
9 // CRASH-REPORT: error: cannot compile inline asm
10 // CRASH-REPORT-NOT: note: diagnostic msg:
12 int test1(int X) {
13 // CHECK: error: invalid instruction mnemonic 'abc'
14 __asm__ ("abc incl %0" : "+r" (X));
15 return X;