1 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -show-encoding < %s \
2 # RUN: | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s
3 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -show-encoding \
4 # RUN: -riscv-no-aliases <%s | FileCheck -check-prefixes=CHECK,CHECK-INST %s
5 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -filetype=obj < %s \
6 # RUN: | llvm-objdump -triple riscv32 -mattr=+c,+f -d - \
7 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s
8 # RUN: llvm-mc -triple riscv32 -mattr=+c,+f -filetype=obj < %s \
9 # RUN: | llvm-objdump -triple riscv32 -mattr=+c,+f -d -M no-aliases - \
10 # RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s
12 # Instructions that are 32 bit only.
15 # CHECK-ALIAS: flw ft0, 124(sp)
16 # CHECK-INST: c.flwsp ft0, 124(sp)
17 # CHECK: # encoding: [0x76,0x70]
20 # CHECK-ALIAS: fsw ft0, 124(sp)
21 # CHECK-INST: c.fswsp ft0, 124(sp)
22 # CHECK: # encoding: [0x82,0xfe]
25 # CHECK-ALIAS: flw fs0, 124(s0)
26 # CHECK-INST: c.flw fs0, 124(s0)
27 # CHECK: # encoding: [0x60,0x7c]
30 # CHECK-ALIAS: fsw fs0, 124(s0)
31 # CHECK-INST: c.fsw fs0, 124(s0)
32 # CHECK: # encoding: [0x60,0xfc]