1# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s 2# 3#CHECK: cfcmsa $1, $0 # encoding: [0x78,0x7e,0x00,0x59] 4#CHECK: cfcmsa $1, $0 # encoding: [0x78,0x7e,0x00,0x59] 5#CHECK: cfcmsa $2, $1 # encoding: [0x78,0x7e,0x08,0x99] 6#CHECK: cfcmsa $2, $1 # encoding: [0x78,0x7e,0x08,0x99] 7#CHECK: cfcmsa $3, $2 # encoding: [0x78,0x7e,0x10,0xd9] 8#CHECK: cfcmsa $3, $2 # encoding: [0x78,0x7e,0x10,0xd9] 9#CHECK: cfcmsa $4, $3 # encoding: [0x78,0x7e,0x19,0x19] 10#CHECK: cfcmsa $4, $3 # encoding: [0x78,0x7e,0x19,0x19] 11#CHECK: cfcmsa $5, $4 # encoding: [0x78,0x7e,0x21,0x59] 12#CHECK: cfcmsa $5, $4 # encoding: [0x78,0x7e,0x21,0x59] 13#CHECK: cfcmsa $6, $5 # encoding: [0x78,0x7e,0x29,0x99] 14#CHECK: cfcmsa $6, $5 # encoding: [0x78,0x7e,0x29,0x99] 15#CHECK: cfcmsa $7, $6 # encoding: [0x78,0x7e,0x31,0xd9] 16#CHECK: cfcmsa $7, $6 # encoding: [0x78,0x7e,0x31,0xd9] 17#CHECK: cfcmsa $8, $7 # encoding: [0x78,0x7e,0x3a,0x19] 18#CHECK: cfcmsa $8, $7 # encoding: [0x78,0x7e,0x3a,0x19] 19 20#CHECK: ctcmsa $0, $1 # encoding: [0x78,0x3e,0x08,0x19] 21#CHECK: ctcmsa $0, $1 # encoding: [0x78,0x3e,0x08,0x19] 22#CHECK: ctcmsa $1, $2 # encoding: [0x78,0x3e,0x10,0x59] 23#CHECK: ctcmsa $1, $2 # encoding: [0x78,0x3e,0x10,0x59] 24#CHECK: ctcmsa $2, $3 # encoding: [0x78,0x3e,0x18,0x99] 25#CHECK: ctcmsa $2, $3 # encoding: [0x78,0x3e,0x18,0x99] 26#CHECK: ctcmsa $3, $4 # encoding: [0x78,0x3e,0x20,0xd9] 27#CHECK: ctcmsa $3, $4 # encoding: [0x78,0x3e,0x20,0xd9] 28#CHECK: ctcmsa $4, $5 # encoding: [0x78,0x3e,0x29,0x19] 29#CHECK: ctcmsa $4, $5 # encoding: [0x78,0x3e,0x29,0x19] 30#CHECK: ctcmsa $5, $6 # encoding: [0x78,0x3e,0x31,0x59] 31#CHECK: ctcmsa $5, $6 # encoding: [0x78,0x3e,0x31,0x59] 32#CHECK: ctcmsa $6, $7 # encoding: [0x78,0x3e,0x39,0x99] 33#CHECK: ctcmsa $6, $7 # encoding: [0x78,0x3e,0x39,0x99] 34#CHECK: ctcmsa $7, $8 # encoding: [0x78,0x3e,0x41,0xd9] 35#CHECK: ctcmsa $7, $8 # encoding: [0x78,0x3e,0x41,0xd9] 36 37cfcmsa $1, $msair 38cfcmsa $1, $0 39cfcmsa $2, $msacsr 40cfcmsa $2, $1 41cfcmsa $3, $msaaccess 42cfcmsa $3, $2 43cfcmsa $4, $msasave 44cfcmsa $4, $3 45cfcmsa $5, $msamodify 46cfcmsa $5, $4 47cfcmsa $6, $msarequest 48cfcmsa $6, $5 49cfcmsa $7, $msamap 50cfcmsa $7, $6 51cfcmsa $8, $msaunmap 52cfcmsa $8, $7 53 54ctcmsa $msair, $1 55ctcmsa $0, $1 56ctcmsa $msacsr, $2 57ctcmsa $1, $2 58ctcmsa $msaaccess, $3 59ctcmsa $2, $3 60ctcmsa $msasave, $4 61ctcmsa $3, $4 62ctcmsa $msamodify, $5 63ctcmsa $4, $5 64ctcmsa $msarequest, $6 65ctcmsa $5, $6 66ctcmsa $msamap, $7 67ctcmsa $6, $7 68ctcmsa $msaunmap, $8 69ctcmsa $7, $8 70