1 # RUN: llvm-mc -triple=ve --show-encoding < %s \
2 # RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 # RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \
4 # RUN: | FileCheck %s --check-prefixes=CHECK-INST
6 # CHECK-INST: br.l 8199
7 # CHECK-ENCODING: encoding: [0x07,0x20,0x00,0x00,0x00,0x00,0x0f,0x18]
10 # CHECK-INST: br.w.t -224
11 # CHECK-ENCODING: encoding: [0x20,0xff,0xff,0xff,0x00,0x00,0xbf,0x18]
14 # CHECK-INST: braf.d.nt 224
15 # CHECK-ENCODING: encoding: [0xe0,0x00,0x00,0x00,0x00,0x00,0x60,0x18]
18 # CHECK-INST: brgt.s 23, %s20, 224
19 # CHECK-ENCODING: encoding: [0xe0,0x00,0x00,0x00,0x94,0x17,0xc1,0x18]
22 # CHECK-INST: brlt.l %s18, 0, -224
23 # CHECK-ENCODING: encoding: [0x20,0xff,0xff,0xff,0x00,0x92,0x02,0x18]
26 # CHECK-INST: brlt.l.t 23, %s20, -224
27 # CHECK-ENCODING: encoding: [0x20,0xff,0xff,0xff,0x94,0x17,0x32,0x18]
28 brlt.l.
t 23, %s20
, -224
30 # CHECK-INST: brne.w.nt 23, %s20, 8192
31 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0xa3,0x18]
32 brne.w.nt
23, %s20
, 8192
34 # CHECK-INST: breq.d 23, %s20, -224
35 # CHECK-ENCODING: encoding: [0x20,0xff,0xff,0xff,0x94,0x17,0x44,0x18]
38 # CHECK-INST: breq.d %s20, 0, -224
39 # CHECK-ENCODING: encoding: [0x20,0xff,0xff,0xff,0x00,0x94,0x44,0x18]
42 # CHECK-INST: brge.s.t 23, %s20, 8192
43 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0xf5,0x18]
44 brge.s.
t 23, %s20
, 8192
46 # CHECK-INST: brle.l.nt 23, %s20, 224
47 # CHECK-ENCODING: encoding: [0xe0,0x00,0x00,0x00,0x94,0x17,0x26,0x18]
48 brle.l.nt
23, %s20
, 224
50 # CHECK-INST: brnum.d 23, %s20, 8192
51 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0x47,0x18]
52 brnum.d
23, %s20
, 8192
54 # CHECK-INST: brnan.s.t 23, %s20, 8192
55 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0xf8,0x18]
56 brnan.s.
t 23, %s20
, 8192
58 # CHECK-INST: brgtnan.d.nt 23, %s20, 8192
59 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0x69,0x18]
60 brgtnan.d.nt
23, %s20
, 8192
62 # CHECK-INST: brltnan.s 23, %s20, 8192
63 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0xca,0x18]
64 brltnan.s
23, %s20
, 8192
66 # CHECK-INST: brnenan.d.t 23, %s20, 8192
67 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0x7b,0x18]
68 brnenan.d.
t 23, %s20
, 8192
70 # CHECK-INST: breqnan.s.nt 23, %s20, 8192
71 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0xec,0x18]
72 breqnan.s.nt
23, %s20
, 8192
74 # CHECK-INST: brgenan.d 23, %s20, 8192
75 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0x4d,0x18]
76 brgenan.d
23, %s20
, 8192
78 # CHECK-INST: brlenan.s.t 23, %s20, 8192
79 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x94,0x17,0xfe,0x18]
80 brlenan.s.
t 23, %s20
, 8192