test_cases:
  -
    input:
      bytes: [ 0xd5, 0xe6, 0x10, 0x16 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "cas [%i0], %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xe6, 0x11, 0x16 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casl [%i0], %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xe6, 0x1f, 0xf6 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casa [%i0] 255, %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xe6, 0x20, 0x16 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casa [%i0] %asi, %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xf6, 0x10, 0x16 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casx [%i0], %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xf6, 0x11, 0x16 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casxl [%i0], %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xf6, 0x1f, 0xf6 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casxa [%i0] 255, %l6, %o2"

  -
    input:
      bytes: [ 0xd5, 0xf6, 0x20, 0x16 ]
      arch: "CS_ARCH_SPARC"
      options: [ "CS_MODE_V9", "CS_MODE_BIG_ENDIAN" ]
    expected:
      insns:
        -
          asm_text: "casxa [%i0] %asi, %l6, %o2"
