brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 5fc3f41 Raw
43 lines · plain
1# RUN: llvm-mc -triple riscv32 -mattr=+c,+f -show-encoding < %s \2# RUN:   | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s3# RUN: llvm-mc -triple riscv32 -mattr=+c,+f -show-encoding \4# RUN:   -M no-aliases < %s | FileCheck -check-prefixes=CHECK,CHECK-INST %s5# 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 %s8# 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 %s11# RUN: llvm-mc -triple riscv32 -mattr=+zcf,+f -show-encoding < %s \12# RUN:   | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s13# RUN: llvm-mc -triple riscv32 -mattr=+zcf,+f -show-encoding \14# RUN:   -M no-aliases < %s | FileCheck -check-prefixes=CHECK,CHECK-INST %s15# 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 %s18# 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 %s21 22# Instructions that are 32 bit only.23flw ft0, 124(sp)24# CHECK-BYTES: 707625# 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: fe8230# 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: 7c6035# 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: fc6040# CHECK-ALIAS: fsw fs0, 124(s0)41# CHECK-INST: c.fsw fs0, 124(s0)42# CHECK:  # encoding:  [0x60,0xfc]43