23 lines · plain
1# RUN: llvm-mc --disassemble -triple=riscv32 --show-encoding < %s \2# RUN: | FileCheck --check-prefixes=DEFAULT %s3# RUN: llvm-mc --disassemble -triple=riscv64 --show-encoding < %s \4# RUN: | FileCheck --check-prefixes=DEFAULT %s5# RUN: llvm-mc --disassemble -triple=riscv32 -M emit-x8-as-fp \6# RUN: --show-encoding < %s | FileCheck --check-prefixes=EMIT-FP %s7# RUN: llvm-mc --disassemble -triple=riscv64 -M emit-x8-as-fp \8# RUN: --show-encoding < %s | FileCheck --check-prefixes=EMIT-FP %s9# RUN: llvm-mc --disassemble -triple=riscv32 -M numeric -M emit-x8-as-fp \10# RUN: --show-encoding < %s | FileCheck --check-prefixes=NUMERIC %s11# RUN: llvm-mc --disassemble -triple=riscv64 -M numeric -M emit-x8-as-fp \12# RUN: --show-encoding < %s | FileCheck --check-prefixes=NUMERIC %s13 14# DEFAULT: sw a0, -12(s0) # encoding: [0x23,0x2a,0xa4,0xfe]15# EMIT-FP: sw a0, -12(fp) # encoding: [0x23,0x2a,0xa4,0xfe]16# NUMERIC: sw x10, -12(x8) # encoding: [0x23,0x2a,0xa4,0xfe]170x23 0x2a 0xa4 0xfe18 19# DEFAULT: lw a0, -12(s0) # encoding: [0x03,0x25,0x44,0xff]20# EMIT-FP: lw a0, -12(fp) # encoding: [0x03,0x25,0x44,0xff]21# NUMERIC: lw x10, -12(x8) # encoding: [0x03,0x25,0x44,0xff]220x03 0x25 0x44 0xff23