# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips32r2 -mattr=eva | FileCheck %s
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips32r3 -mattr=eva | FileCheck %s
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips32r5 -mattr=eva | FileCheck %s
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips64r2 -mattr=eva | FileCheck %s
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips64r3 -mattr=eva | FileCheck %s
# RUN: llvm-mc --disassemble %s -triple=mips64-unknown-linux -mcpu=mips64r5 -mattr=eva | FileCheck %s
# CHECK: .text
0x7c 0xff 0x7f 0x9b # CHECK: cachee 31, 255($7)
0x7c 0x80 0x80 0x1b # CHECK: cachee 0, -256($4)
0x7c 0x85 0xba 0x1b # CHECK: cachee 5, -140($4)
0x7f 0x2a 0x80 0x2c # CHECK: lbe $10, -256($25)
0x7d 0xed 0x7f 0xac # CHECK: lbe $13, 255($15)
0x7d 0xcb 0x49 0x2c # CHECK: lbe $11, 146($14)
0x7c 0x6d 0x80 0x28 # CHECK: lbue $13, -256($3)
0x7c 0x4d 0x7f 0xa8 # CHECK: lbue $13, 255($2)
0x7c 0x6d 0xa1 0x28 # CHECK: lbue $13, -190($3)
0x7e 0xad 0x80 0x2d # CHECK: lhe $13, -256($21)
0x7e 0x0c 0x7f 0xad # CHECK: lhe $12, 255($16)
0x7e 0x0d 0x28 0xad # CHECK: lhe $13, 81($16)
0x7c 0x72 0x80 0x29 # CHECK: lhue $18, -256($3)
0x7c 0x72 0x7f 0xa9 # CHECK: lhue $18, 255($3)
0x7c 0x56 0xac 0x29 # CHECK: lhue $22, -168($2)
0x7e 0xa2 0x80 0x2e # CHECK: lle $2, -256($21)
0x7e 0x63 0x7f 0xae # CHECK: lle $3, 255($19)
0x7e 0xc3 0xdc 0xae # CHECK: lle $3, -71($22)
0x7d 0xf6 0x7f 0x99 # CHECK: lwle $22, 255($15)
0x7d 0x57 0x80 0x19 # CHECK: lwle $23, -256($10)
0x7d 0xb7 0xa8 0x19 # CHECK: lwle $23, -176($13)
0x7f 0x80 0x7f 0x9a # CHECK: lwre $zero, 255($gp)
0x7f 0x80 0x80 0x1a # CHECK: lwre $zero, -256($gp)
0x7f 0x80 0xa8 0x1a # CHECK: lwre $zero, -176($gp)
0x7c 0x4e 0x80 0x23 # CHECK: prefe 14, -256($2)
0x7c 0x6b 0x7f 0xa3 # CHECK: prefe 11, 255($3)
0x7c 0x6e 0xed 0xa3 # CHECK: prefe 14, -37($3)
0x7d 0x71 0x7f 0x9c # CHECK: sbe $17, 255($11)
0x7d 0x51 0x80 0x1c # CHECK: sbe $17, -256($10)
0x7d 0xd3 0x00 0x1c # CHECK: sbe $19, 0($14)
0x7e 0x49 0x7f 0x9e # CHECK: sce $9, 255($18)
0x7e 0xac 0x80 0x1e # CHECK: sce $12, -256($21)
0x7e 0xed 0xf0 0x9e # CHECK: sce $13, -31($23)
0x7d 0xee 0x7f 0x9d # CHECK: she $14, 255($15)
0x7d 0xee 0x80 0x1d # CHECK: she $14, -256($15)
0x7d 0x69 0x75 0x9d # CHECK: she $9, 235($11)
0x7f 0xbf 0x7f 0x9f # CHECK: swe $ra, 255($sp)
0x7f 0xbf 0x80 0x1f # CHECK: swe $ra, -256($sp)
0x7f 0xbf 0xe5 0x9f # CHECK: swe $ra, -53($sp)
0x7e 0x29 0x7f 0xa1 # CHECK: swle $9, 255($17)
0x7e 0x6a 0x80 0x21 # CHECK: swle $10, -256($19)
0x7e 0xa8 0x41 0xa1 # CHECK: swle $8, 131($21)
0x7d 0xb4 0x7f 0xa2 # CHECK: swre $20, 255($13)
0x7d 0xb4 0x80 0x22 # CHECK: swre $20, -256($13)
0x7d 0xd2 0x2b 0x22 # CHECK: swre $18, 86($14)
0x42 0x00 0x00 0x03 # CHECK: tlbinv
0x42 0x00 0x00 0x04 # CHECK: tlbinvf
