aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/mips-inline-asm-abi.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/mips-inline-asm-abi.c')
-rw-r--r--test/CodeGen/mips-inline-asm-abi.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/CodeGen/mips-inline-asm-abi.c b/test/CodeGen/mips-inline-asm-abi.c
new file mode 100644
index 000000000000..20c4f8d8be71
--- /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() {}