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: -M 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 --no-print-imm-hex -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 --no-print-imm-hex -d -M no-aliases - \ 10# RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 11# RUN: llvm-mc -triple riscv32 -mattr=+zcf,+f -show-encoding < %s \ 12# RUN: | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s 13# RUN: llvm-mc -triple riscv32 -mattr=+zcf,+f -show-encoding \ 14# RUN: -M no-aliases < %s | FileCheck -check-prefixes=CHECK,CHECK-INST %s 15# RUN: llvm-mc -triple riscv32 -mattr=+zcf,+f -filetype=obj < %s \ 16# RUN: | llvm-objdump --triple=riscv32 --mattr=+zcf,+f --no-print-imm-hex -d - \ 17# RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIAS %s 18# RUN: llvm-mc -triple riscv32 -mattr=+zcf,+f -filetype=obj < %s \ 19# RUN: | llvm-objdump --triple=riscv32 --mattr=+zcf,+f --no-print-imm-hex -d -M no-aliases - \ 20# RUN: | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INST %s 21 22# Instructions that are 32 bit only. 23flw ft0, 124(sp) 24# CHECK-BYTES: 7076 25# CHECK-ALIAS: flw ft0, 124(sp) 26# CHECK-INST: c.flwsp ft0, 124(sp) 27# CHECK: # encoding: [0x76,0x70] 28fsw ft0, 124(sp) 29# CHECK-BYTES: fe82 30# CHECK-ALIAS: fsw ft0, 124(sp) 31# CHECK-INST: c.fswsp ft0, 124(sp) 32# CHECK: # encoding: [0x82,0xfe] 33flw fs0, 124(s0) 34# CHECK-BYTES: 7c60 35# CHECK-ALIAS: flw fs0, 124(s0) 36# CHECK-INST: c.flw fs0, 124(s0) 37# CHECK: # encoding: [0x60,0x7c] 38fsw fs0, 124(s0) 39# CHECK-BYTES: fc60 40# CHECK-ALIAS: fsw fs0, 124(s0) 41# CHECK-INST: c.fsw fs0, 124(s0) 42# CHECK: # encoding: [0x60,0xfc] 43