test_cases:
  -
    input:
      bytes: [ 0xe0, 0x7f ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "ld s0, 248(a5)"

  -
    input:
      bytes: [ 0xa0, 0xe3 ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "sd s0, 64(a5)"

  -
    input:
      bytes: [ 0x7d, 0x22 ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "addiw tp, tp, 31"

  -
    input:
      bytes: [ 0x1d, 0x9c ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "subw s0, s0, a5"

  -
    input:
      bytes: [ 0x3d, 0x9c ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "addw s0, s0, a5"

  -
    input:
      bytes: [ 0xee, 0x70 ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "ld ra, 248(sp)"

  -
    input:
      bytes: [ 0xa2, 0xe0 ]
      arch: "CS_ARCH_RISCV"
      options: [ "CS_MODE_RISCV64", "CS_MODE_RISCV_C" ]
    expected:
      insns:
        -
          asm_text: "sd s0, 64(sp)"
