# RUN: llvm-mc --disassemble -triple=riscv32 --show-encoding < %s \ # RUN: | FileCheck --check-prefixes=DEFAULT %s # RUN: llvm-mc --disassemble -triple=riscv64 --show-encoding < %s \ # RUN: | FileCheck --check-prefixes=DEFAULT %s # RUN: llvm-mc --disassemble -triple=riscv32 -M emit-x8-as-fp \ # RUN: --show-encoding < %s | FileCheck --check-prefixes=EMIT-FP %s # RUN: llvm-mc --disassemble -triple=riscv64 -M emit-x8-as-fp \ # RUN: --show-encoding < %s | FileCheck --check-prefixes=EMIT-FP %s # RUN: llvm-mc --disassemble -triple=riscv32 -M numeric -M emit-x8-as-fp \ # RUN: --show-encoding < %s | FileCheck --check-prefixes=NUMERIC %s # RUN: llvm-mc --disassemble -triple=riscv64 -M numeric -M emit-x8-as-fp \ # RUN: --show-encoding < %s | FileCheck --check-prefixes=NUMERIC %s # DEFAULT: sw a0, -12(s0) # encoding: [0x23,0x2a,0xa4,0xfe] # EMIT-FP: sw a0, -12(fp) # encoding: [0x23,0x2a,0xa4,0xfe] # NUMERIC: sw x10, -12(x8) # encoding: [0x23,0x2a,0xa4,0xfe] 0x23 0x2a 0xa4 0xfe # DEFAULT: lw a0, -12(s0) # encoding: [0x03,0x25,0x44,0xff] # EMIT-FP: lw a0, -12(fp) # encoding: [0x03,0x25,0x44,0xff] # NUMERIC: lw x10, -12(x8) # encoding: [0x03,0x25,0x44,0xff] 0x03 0x25 0x44 0xff