summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/RISCV/rv32c-only-valid.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/RISCV/rv32c-only-valid.s')
-rw-r--r--llvm/test/MC/RISCV/rv32c-only-valid.s8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/MC/RISCV/rv32c-only-valid.s b/llvm/test/MC/RISCV/rv32c-only-valid.s
new file mode 100644
index 00000000000..319ac8f1eb8
--- /dev/null
+++ b/llvm/test/MC/RISCV/rv32c-only-valid.s
@@ -0,0 +1,8 @@
+# RUN: llvm-mc -triple=riscv32 -mattr=+c -show-encoding < %s \
+# RUN: | FileCheck -check-prefixes=CHECK,CHECK-INST %s
+# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \
+# RUN: | llvm-objdump -mattr=+c -d - | FileCheck -check-prefix=CHECK-INST %s
+
+# CHECK-INST: c.jal 2046
+# CHECK: encoding: [0xfd,0x2f]
+c.jal 2046
OpenPOWER on IntegriCloud