1 # RUN: llvm-mc %s -triple=riscv32 -mattr=+c -riscv-no-aliases \
2 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
3 # RUN: llvm-mc %s -triple=riscv64 -mattr=+c -riscv-no-aliases \
4 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
5 # RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+c < %s \
6 # RUN: | llvm-objdump -M no-aliases -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
8 # RUN: llvm-mc -filetype=obj -triple riscv64 -mattr=+c < %s \
9 # RUN: | llvm-objdump -M no-aliases -d - \
10 # RUN: | FileCheck -check-prefixes=CHECK-EXPAND %s
12 # CHECK-EXPAND: c.lw s0, 0(s1)
14 # CHECK-EXPAND: c.sw s0, 0(s1)
16 # CHECK-EXPAND: c.lwsp s0, 0(sp)
18 # CHECK-EXPAND: c.swsp s0, 0(sp)