1# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s 2# 3# CHECK: ld.b $w0, -512($1) # encoding: [0x7a,0x00,0x08,0x20] 4# CHECK: ld.b $w1, 0($2) # encoding: [0x78,0x00,0x10,0x60] 5# CHECK: ld.b $w2, 511($3) # encoding: [0x79,0xff,0x18,0xa0] 6 7# CHECK: ld.h $w3, -1024($4) # encoding: [0x7a,0x00,0x20,0xe1] 8# CHECK: ld.h $w4, -512($5) # encoding: [0x7b,0x00,0x29,0x21] 9# CHECK: ld.h $w5, 0($6) # encoding: [0x78,0x00,0x31,0x61] 10# CHECK: ld.h $w6, 512($7) # encoding: [0x79,0x00,0x39,0xa1] 11# CHECK: ld.h $w7, 1022($8) # encoding: [0x79,0xff,0x41,0xe1] 12 13# CHECK: ld.w $w8, -2048($9) # encoding: [0x7a,0x00,0x4a,0x22] 14# CHECK: ld.w $w9, -1024($10) # encoding: [0x7b,0x00,0x52,0x62] 15# CHECK: ld.w $w10, -512($11) # encoding: [0x7b,0x80,0x5a,0xa2] 16# CHECK: ld.w $w11, 512($12) # encoding: [0x78,0x80,0x62,0xe2] 17# CHECK: ld.w $w12, 1024($13) # encoding: [0x79,0x00,0x6b,0x22] 18# CHECK: ld.w $w13, 2044($14) # encoding: [0x79,0xff,0x73,0x62] 19 20# CHECK: ld.d $w14, -4096($15) # encoding: [0x7a,0x00,0x7b,0xa3] 21# CHECK: ld.d $w15, -2048($16) # encoding: [0x7b,0x00,0x83,0xe3] 22# CHECK: ld.d $w16, -1024($17) # encoding: [0x7b,0x80,0x8c,0x23] 23# CHECK: ld.d $w17, -512($18) # encoding: [0x7b,0xc0,0x94,0x63] 24# CHECK: ld.d $w18, 0($19) # encoding: [0x78,0x00,0x9c,0xa3] 25# CHECK: ld.d $w19, 512($20) # encoding: [0x78,0x40,0xa4,0xe3] 26# CHECK: ld.d $w20, 1024($21) # encoding: [0x78,0x80,0xad,0x23] 27# CHECK: ld.d $w21, 2048($22) # encoding: [0x79,0x00,0xb5,0x63] 28# CHECK: ld.d $w22, 4088($23) # encoding: [0x79,0xff,0xbd,0xa3] 29 30 ld.b $w0, -512($1) 31 ld.b $w1, 0($2) 32 ld.b $w2, 511($3) 33 34 ld.h $w3, -1024($4) 35 ld.h $w4, -512($5) 36 ld.h $w5, 0($6) 37 ld.h $w6, 512($7) 38 ld.h $w7, 1022($8) 39 40 ld.w $w8, -2048($9) 41 ld.w $w9, -1024($10) 42 ld.w $w10, -512($11) 43 ld.w $w11, 512($12) 44 ld.w $w12, 1024($13) 45 ld.w $w13, 2044($14) 46 47 ld.d $w14, -4096($15) 48 ld.d $w15, -2048($16) 49 ld.d $w16, -1024($17) 50 ld.d $w17, -512($18) 51 ld.d $w18, 0($19) 52 ld.d $w19, 512($20) 53 ld.d $w20, 1024($21) 54 ld.d $w21, 2048($22) 55 ld.d $w22, 4088($23) 56