[llvm-objdump] - Remove one overload of reportError. NFCI.
[llvm-complete.git] / test / MC / Mips / msa / test_cbranch.s
blobaa6779b1b46efb3d976a6fbf6d02bc6e24508aa4
1 # RUN: llvm-mc %s -arch=mips -mcpu=mips32r2 -mattr=+msa -show-encoding | FileCheck %s
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]
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]
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]
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]
56 bnz.b $w0, 4
57 bnz.h $w1, 16
58 bnz.w $w2, 128
59 bnz.d $w3, -128
60 bnz.b $w0, SYMBOL0
61 bnz.h $w1, SYMBOL1
62 bnz.w $w2, SYMBOL2
63 bnz.d $w3, SYMBOL3
65 bnz.v $w0, 4
66 bnz.v $w0, SYMBOL0
68 bz.b $w0, 128
69 bz.h $w1, 256
70 bz.w $w2, 512
71 bz.d $w3, -1024
72 bz.b $w0, SYMBOL0
73 bz.h $w1, SYMBOL1
74 bz.w $w2, SYMBOL2
75 bz.d $w3, SYMBOL3
77 bz.v $w0, 4
78 bz.v $w0, SYMBOL0