llvm-capstone/clang/test/CodeGen/mips-inline-asm-abi.c
Simon Atanasyan 25be8761b9 [mips] Add test case to check ABI flag emissions in case of inline assembler
Follow up to r247546. The test case reproduces the problem fixed by this commit.

llvm-svn: 247548
2015-09-14 11:23:02 +00:00

13 lines
217 B
C

// REQUIRES: mips-registered-target
// RUN: %clang_cc1 -triple mips-linux-gnu -emit-obj -o - %s | \
// RUN: llvm-readobj -h - | FileCheck %s
// CHECK: EF_MIPS_ABI_O32
__asm__(
"bar:\n"
" nop\n"
);
void foo() {}