summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-09-14 11:23:02 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-09-14 11:23:02 +0000
commit25be8761b9bb2ee9b33638373542bd7948ea944a (patch)
treea696038079722bebf52d2b923af9ea9940d80852 /clang/test/CodeGen
parent75e3b3c82661b58f32977cf3121b7966d8afa81e (diff)
downloadbcm5719-llvm-25be8761b9bb2ee9b33638373542bd7948ea944a.tar.gz
bcm5719-llvm-25be8761b9bb2ee9b33638373542bd7948ea944a.zip
[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
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r--clang/test/CodeGen/mips-inline-asm-abi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/mips-inline-asm-abi.c b/clang/test/CodeGen/mips-inline-asm-abi.c
new file mode 100644
index 00000000000..20c4f8d8be7
--- /dev/null
+++ b/clang/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() {}
OpenPOWER on IntegriCloud