summaryrefslogtreecommitdiff
path: root/test/MC/Mips/abicalls.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/abicalls.ll')
-rw-r--r--test/MC/Mips/abicalls.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/Mips/abicalls.ll b/test/MC/Mips/abicalls.ll
new file mode 100644
index 0000000000..a93ae6d9c6
--- /dev/null
+++ b/test/MC/Mips/abicalls.ll
@@ -0,0 +1,13 @@
+;
+; When the assembler is ready a .s file for it will
+; be created.
+
+; Note that EF_MIPS_CPIC is set by -mabicalls which is the default on Linux
+; TODO need to support -mno-abicalls
+
+; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32 -relocation-model=static %s -o - | FileCheck -check-prefix=CHECK-STATIC %s
+; RUN: llc -filetype=asm -mtriple mipsel-unknown-linux -mcpu=mips32 %s -o - | FileCheck -check-prefix=CHECK-PIC %s
+; CHECK-STATIC: .abicalls
+; CHECK-STATIC-NEXT: pic0
+; CHECK-PIC: .abicalls
+; CHECK-PIC-NOT: pic0