aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/cfi.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/Mips/cfi.s')
-rw-r--r--test/MC/Mips/cfi.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/Mips/cfi.s b/test/MC/Mips/cfi.s
new file mode 100644
index 0000000..a3247b5
--- /dev/null
+++ b/test/MC/Mips/cfi.s
@@ -0,0 +1,13 @@
+# RUN: llvm-mc %s -triple=mips-unknown-unknown -show-encoding -mcpu=mips32 | \
+# RUN: FileCheck %s
+# RUN: llvm-mc %s -triple=mips64-unknown-unknown -show-encoding -mcpu=mips64 | \
+# RUN: FileCheck %s
+
+# Check that we can accept register names in CFI directives and that they are
+# canonicalised to their DWARF register numbers.
+
+ .cfi_startproc # CHECK: .cfi_startproc
+ .cfi_register $6, $5 # CHECK: .cfi_register 6, 5
+ .cfi_def_cfa $fp, 8 # CHECK: .cfi_def_cfa 30, 8
+ .cfi_def_cfa $2, 16 # CHECK: .cfi_def_cfa 2, 16
+ .cfi_endproc # CHECK: .cfi_endproc