test_mi10.s 2.22 KB
# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
#
        ld.b $w0, -512($1)    # CHECK: ld.b $w0, -512($1)    # encoding: [0x7a,0x00,0x08,0x20]
        ld.b $w1, 0($2)       # CHECK: ld.b $w1, 0($2)       # encoding: [0x78,0x00,0x10,0x60]
        ld.b $w2, 511($3)     # CHECK: ld.b $w2, 511($3)     # encoding: [0x79,0xff,0x18,0xa0]

        ld.h $w3, -1024($4)   # CHECK: ld.h $w3, -1024($4)   # encoding: [0x7a,0x00,0x20,0xe1]
        ld.h $w4, -512($5)    # CHECK: ld.h $w4, -512($5)    # encoding: [0x7b,0x00,0x29,0x21]
        ld.h $w5, 0($6)       # CHECK: ld.h $w5, 0($6)       # encoding: [0x78,0x00,0x31,0x61]
        ld.h $w6, 512($7)     # CHECK: ld.h $w6, 512($7)     # encoding: [0x79,0x00,0x39,0xa1]
        ld.h $w7, 1022($8)    # CHECK: ld.h $w7, 1022($8)    # encoding: [0x79,0xff,0x41,0xe1]

        ld.w $w8, -2048($9)   # CHECK: ld.w $w8, -2048($9)   # encoding: [0x7a,0x00,0x4a,0x22]
        ld.w $w9, -1024($10)  # CHECK: ld.w $w9, -1024($10)  # encoding: [0x7b,0x00,0x52,0x62]
        ld.w $w10, -512($11)  # CHECK: ld.w $w10, -512($11)  # encoding: [0x7b,0x80,0x5a,0xa2]
        ld.w $w11, 512($12)   # CHECK: ld.w $w11, 512($12)   # encoding: [0x78,0x80,0x62,0xe2]
        ld.w $w12, 1024($13)  # CHECK: ld.w $w12, 1024($13)  # encoding: [0x79,0x00,0x6b,0x22]
        ld.w $w13, 2044($14)  # CHECK: ld.w $w13, 2044($14)  # encoding: [0x79,0xff,0x73,0x62]

        ld.d $w14, -4096($15) # CHECK: ld.d $w14, -4096($15) # encoding: [0x7a,0x00,0x7b,0xa3]
        ld.d $w15, -2048($16) # CHECK: ld.d $w15, -2048($16) # encoding: [0x7b,0x00,0x83,0xe3]
        ld.d $w16, -1024($17) # CHECK: ld.d $w16, -1024($17) # encoding: [0x7b,0x80,0x8c,0x23]
        ld.d $w17, -512($18)  # CHECK: ld.d $w17, -512($18)  # encoding: [0x7b,0xc0,0x94,0x63]
        ld.d $w18, 0($19)     # CHECK: ld.d $w18, 0($19)     # encoding: [0x78,0x00,0x9c,0xa3]
        ld.d $w19, 512($20)   # CHECK: ld.d $w19, 512($20)   # encoding: [0x78,0x40,0xa4,0xe3]
        ld.d $w20, 1024($21)  # CHECK: ld.d $w20, 1024($21)  # encoding: [0x78,0x80,0xad,0x23]
        ld.d $w21, 2048($22)  # CHECK: ld.d $w21, 2048($22)  # encoding: [0x79,0x00,0xb5,0x63]
        ld.d $w22, 4088($23)  # CHECK: ld.d $w22, 4088($23)  # encoding: [0x79,0xff,0xbd,0xa3]