brintos

brintos / llvm-project-archived public Read only

0
0
Text · 857 B · cdb6e85 Raw
20 lines · plain
1# RUN: llvm-mc -triple riscv32 -mattr=+c -show-encoding < %s \2# RUN:   | FileCheck -check-prefixes=CHECK,CHECK-ALIAS %s3# RUN: llvm-mc -triple riscv32 -mattr=+c -show-encoding \4# RUN:   -M no-aliases < %s | FileCheck -check-prefixes=CHECK,CHECK-INST %s5# RUN: llvm-mc -triple riscv32 -mattr=+c -filetype=obj < %s \6# RUN:   | llvm-objdump  --triple=riscv32 --mattr=+c -d - \7# RUN:   | FileCheck -check-prefixes=CHECK-BYTES,CHECK-ALIASOBJ %s8# RUN: llvm-mc -triple riscv32 -mattr=+c -filetype=obj < %s \9# RUN:   | llvm-objdump  --triple=riscv32 --mattr=+c -d -M no-aliases - \10# RUN:   | FileCheck -check-prefixes=CHECK-BYTES,CHECK-INSTOBJ %s11 12# c.jal is an rv32 only instruction.13jal ra, 204614# CHECK-BYTES: 2ffd15# CHECK-ALIASOBJ: jal 0x7fe16# CHECK-ALIAS: jal 204617# CHECK-INST: c.jal 204618# CHECK-INSTOBJ: c.jal 0x7fe19# CHECK:  # encoding: [0xfd,0x2f]20