1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s 2 # 3 # CHECK: bclri.b $w21, $w30, 2 # encoding: [0x79,0xf2,0xf5,0x49] 4 # CHECK: bclri.h $w24, $w21, 0 # encoding: [0x79,0xe0,0xae,0x09] 5 # CHECK: bclri.w $w23, $w30, 3 # encoding: [0x79,0xc3,0xf5,0xc9] 6 # CHECK: bclri.d $w9, $w11, 0 # encoding: [0x79,0x80,0x5a,0x49] 7 # CHECK: binsli.b $w25, $w12, 1 # encoding: [0x7b,0x71,0x66,0x49] 8 # CHECK: binsli.h $w21, $w22, 0 # encoding: [0x7b,0x60,0xb5,0x49] 9 # CHECK: binsli.w $w22, $w4, 0 # encoding: [0x7b,0x40,0x25,0x89] 10 # CHECK: binsli.d $w6, $w2, 6 # encoding: [0x7b,0x06,0x11,0x89] 11 # CHECK: binsri.b $w15, $w19, 0 # encoding: [0x7b,0xf0,0x9b,0xc9] 12 # CHECK: binsri.h $w8, $w30, 1 # encoding: [0x7b,0xe1,0xf2,0x09] 13 # CHECK: binsri.w $w2, $w19, 5 # encoding: [0x7b,0xc5,0x98,0x89] 14 # CHECK: binsri.d $w18, $w20, 1 # encoding: [0x7b,0x81,0xa4,0x89] 15 # CHECK: bnegi.b $w24, $w19, 0 # encoding: [0x7a,0xf0,0x9e,0x09] 16 # CHECK: bnegi.h $w28, $w11, 3 # encoding: [0x7a,0xe3,0x5f,0x09] 17 # CHECK: bnegi.w $w1, $w27, 5 # encoding: [0x7a,0xc5,0xd8,0x49] 18 # CHECK: bnegi.d $w4, $w21, 1 # encoding: [0x7a,0x81,0xa9,0x09] 19 # CHECK: bseti.b $w18, $w8, 0 # encoding: [0x7a,0x70,0x44,0x89] 20 # CHECK: bseti.h $w24, $w14, 2 # encoding: [0x7a,0x62,0x76,0x09] 21 # CHECK: bseti.w $w9, $w18, 4 # encoding: [0x7a,0x44,0x92,0x49] 22 # CHECK: bseti.d $w7, $w15, 1 # encoding: [0x7a,0x01,0x79,0xc9] 23 # CHECK: sat_s.b $w31, $w31, 2 # encoding: [0x78,0x72,0xff,0xca] 24 # CHECK: sat_s.h $w19, $w19, 0 # encoding: [0x78,0x60,0x9c,0xca] 25 # CHECK: sat_s.w $w19, $w29, 0 # encoding: [0x78,0x40,0xec,0xca] 26 # CHECK: sat_s.d $w11, $w22, 0 # encoding: [0x78,0x00,0xb2,0xca] 27 # CHECK: sat_u.b $w1, $w13, 3 # encoding: [0x78,0xf3,0x68,0x4a] 28 # CHECK: sat_u.h $w30, $w24, 4 # encoding: [0x78,0xe4,0xc7,0x8a] 29 # CHECK: sat_u.w $w31, $w13, 0 # encoding: [0x78,0xc0,0x6f,0xca] 30 # CHECK: sat_u.d $w29, $w16, 5 # encoding: [0x78,0x85,0x87,0x4a] 31 # CHECK: slli.b $w23, $w10, 1 # encoding: [0x78,0x71,0x55,0xc9] 32 # CHECK: slli.h $w9, $w18, 1 # encoding: [0x78,0x61,0x92,0x49] 33 # CHECK: slli.w $w11, $w29, 4 # encoding: [0x78,0x44,0xea,0xc9] 34 # CHECK: slli.d $w25, $w20, 1 # encoding: [0x78,0x01,0xa6,0x49] 35 # CHECK: srai.b $w24, $w29, 1 # encoding: [0x78,0xf1,0xee,0x09] 36 # CHECK: srai.h $w1, $w6, 0 # encoding: [0x78,0xe0,0x30,0x49] 37 # CHECK: srai.w $w7, $w26, 1 # encoding: [0x78,0xc1,0xd1,0xc9] 38 # CHECK: srai.d $w20, $w25, 3 # encoding: [0x78,0x83,0xcd,0x09] 39 # CHECK: srari.b $w5, $w25, 0 # encoding: [0x79,0x70,0xc9,0x4a] 40 # CHECK: srari.h $w7, $w6, 4 # encoding: [0x79,0x64,0x31,0xca] 41 # CHECK: srari.w $w17, $w11, 5 # encoding: [0x79,0x45,0x5c,0x4a] 42 # CHECK: srari.d $w21, $w25, 5 # encoding: [0x79,0x05,0xcd,0x4a] 43 # CHECK: srli.b $w2, $w0, 2 # encoding: [0x79,0x72,0x00,0x89] 44 # CHECK: srli.h $w31, $w31, 2 # encoding: [0x79,0x62,0xff,0xc9] 45 # CHECK: srli.w $w5, $w9, 4 # encoding: [0x79,0x44,0x49,0x49] 46 # CHECK: srli.d $w27, $w26, 5 # encoding: [0x79,0x05,0xd6,0xc9] 47 # CHECK: srlri.b $w18, $w3, 0 # encoding: [0x79,0xf0,0x1c,0x8a] 48 # CHECK: srlri.h $w1, $w2, 3 # encoding: [0x79,0xe3,0x10,0x4a] 49 # CHECK: srlri.w $w11, $w22, 2 # encoding: [0x79,0xc2,0xb2,0xca] 50 # CHECK: srlri.d $w24, $w10, 6 # encoding: [0x79,0x86,0x56,0x0a] 51 52 bclri.b $w21, $w30, 2 53 bclri.h $w24, $w21, 0 54 bclri.w $w23, $w30, 3 55 bclri.d $w9, $w11, 0 56 binsli.b $w25, $w12, 1 57 binsli.h $w21, $w22, 0 58 binsli.w $w22, $w4, 0 59 binsli.d $w6, $w2, 6 60 binsri.b $w15, $w19, 0 61 binsri.h $w8, $w30, 1 62 binsri.w $w2, $w19, 5 63 binsri.d $w18, $w20, 1 64 bnegi.b $w24, $w19, 0 65 bnegi.h $w28, $w11, 3 66 bnegi.w $w1, $w27, 5 67 bnegi.d $w4, $w21, 1 68 bseti.b $w18, $w8, 0 69 bseti.h $w24, $w14, 2 70 bseti.w $w9, $w18, 4 71 bseti.d $w7, $w15, 1 72 sat_s.b $w31, $w31, 2 73 sat_s.h $w19, $w19, 0 74 sat_s.w $w19, $w29, 0 75 sat_s.d $w11, $w22, 0 76 sat_u.b $w1, $w13, 3 77 sat_u.h $w30, $w24, 4 78 sat_u.w $w31, $w13, 0 79 sat_u.d $w29, $w16, 5 80 slli.b $w23, $w10, 1 81 slli.h $w9, $w18, 1 82 slli.w $w11, $w29, 4 83 slli.d $w25, $w20, 1 84 srai.b $w24, $w29, 1 85 srai.h $w1, $w6, 0 86 srai.w $w7, $w26, 1 87 srai.d $w20, $w25, 3 88 srari.b $w5, $w25, 0 89 srari.h $w7, $w6, 4 90 srari.w $w17, $w11, 5 91 srari.d $w21, $w25, 5 92 srli.b $w2, $w0, 2 93 srli.h $w31, $w31, 2 94 srli.w $w5, $w9, 4 95 srli.d $w27, $w26, 5 96 srlri.b $w18, $w3, 0 97 srlri.h $w1, $w2, 3 98 srlri.w $w11, $w22, 2 99 srlri.d $w24, $w10, 6 100