From: Simon Atanasyan Date: Mon, 14 Sep 2015 11:23:02 +0000 (+0000) Subject: [mips] Add test case to check ABI flag emissions in case of inline assembler X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac5d12bb0cdc8cf909ab0d711cbc2a370b1eece2;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247548 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/mips-inline-asm-abi.c b/test/CodeGen/mips-inline-asm-abi.c new file mode 100644 index 0000000000..20c4f8d8be --- /dev/null +++ b/test/CodeGen/mips-inline-asm-abi.c @@ -0,0 +1,12 @@ +// 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() {}