1# RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
2#
3#CHECK:      bnz.b        $w0, 4        # encoding: [0x47,0x80,0x00,0x01]
4#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
5#CHECK:      bnz.h        $w1, 16       # encoding: [0x47,0xa1,0x00,0x04]
6#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
7#CHECK:      bnz.w        $w2, 128      # encoding: [0x47,0xc2,0x00,0x20]
8#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
9#CHECK:      bnz.d        $w3, -128     # encoding: [0x47,0xe3,0xff,0xe0]
10#CHECK:      bnz.b        $w0, SYMBOL0  # encoding: [0x47,0x80,A,A]
11                                        #   fixup A - offset: 0, value: SYMBOL0, kind: fixup_Mips_PC16
12#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
13#CHECK:      bnz.h        $w1, SYMBOL1  # encoding: [0x47,0xa1,A,A]
14                                        #   fixup A - offset: 0, value: SYMBOL1, kind: fixup_Mips_PC16
15#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
16#CHECK:      bnz.w        $w2, SYMBOL2  # encoding: [0x47,0xc2,A,A]
17                                        #   fixup A - offset: 0, value: SYMBOL2, kind: fixup_Mips_PC16
18#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
19#CHECK:      bnz.d        $w3, SYMBOL3  # encoding: [0x47,0xe3,A,A]
20                                        #   fixup A - offset: 0, value: SYMBOL3, kind: fixup_Mips_PC16
21#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
22
23#CHECK:      bnz.v        $w0, 4        # encoding: [0x45,0xe0,0x00,0x01]
24#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
25#CHECK:      bnz.v        $w0, SYMBOL0  # encoding: [0x45,0xe0,A,A]
26                                        #   fixup A - offset: 0, value: SYMBOL0, kind: fixup_Mips_PC16
27#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
28
29#CHECK:      bz.b         $w0, 128      # encoding: [0x47,0x00,0x00,0x20]
30#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
31#CHECK:      bz.h         $w1, 256      # encoding: [0x47,0x21,0x00,0x40]
32#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
33#CHECK:      bz.w         $w2, 512      # encoding: [0x47,0x42,0x00,0x80]
34#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
35#CHECK:      bz.d         $w3, -1024    # encoding: [0x47,0x63,0xff,0x00]
36#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
37#CHECK:      bz.b         $w0, SYMBOL0  # encoding: [0x47,0x00,A,A]
38                                        #   fixup A - offset: 0, value: SYMBOL0, kind: fixup_Mips_PC16
39#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
40#CHECK:      bz.h         $w1, SYMBOL1  # encoding: [0x47,0x21,A,A]
41                                        #   fixup A - offset: 0, value: SYMBOL1, kind: fixup_Mips_PC16
42#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
43#CHECK:      bz.w         $w2, SYMBOL2  # encoding: [0x47,0x42,A,A]
44                                        #   fixup A - offset: 0, value: SYMBOL2, kind: fixup_Mips_PC16
45#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
46#CHECK:      bz.d         $w3, SYMBOL3  # encoding: [0x47,0x63,A,A]
47                                        #   fixup A - offset: 0, value: SYMBOL3, kind: fixup_Mips_PC16
48#CHECK:      nop                        # encoding: [0x00,0x00,0x00,0x00]
49
50#CHECK:      bz.v        $w0, 4        # encoding: [0x45,0x60,0x00,0x01]
51#CHECK:      nop                       # encoding: [0x00,0x00,0x00,0x00]
52#CHECK:      bz.v        $w0, SYMBOL0  # encoding: [0x45,0x60,A,A]
53                                       #   fixup A - offset: 0, value: SYMBOL0, kind: fixup_Mips_PC16
54#CHECK:      nop                       # encoding: [0x00,0x00,0x00,0x00]
55
56bnz.b        $w0, 4
57bnz.h        $w1, 16
58bnz.w        $w2, 128
59bnz.d        $w3, -128
60bnz.b        $w0, SYMBOL0
61bnz.h        $w1, SYMBOL1
62bnz.w        $w2, SYMBOL2
63bnz.d        $w3, SYMBOL3
64
65bnz.v        $w0, 4
66bnz.v        $w0, SYMBOL0
67
68bz.b        $w0, 128
69bz.h        $w1, 256
70bz.w        $w2, 512
71bz.d        $w3, -1024
72bz.b        $w0, SYMBOL0
73bz.h        $w1, SYMBOL1
74bz.w        $w2, SYMBOL2
75bz.d        $w3, SYMBOL3
76
77bz.v        $w0, 4
78bz.v        $w0, SYMBOL0
79