[SelectOpt] Support ADD and SUB with zext operands. (#115489)
[llvm-project.git] / llvm / test / MC / VE / VFMS.s
blob801668905ce60970a5f4a7d9dcd3536f7d1a2aa3
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: vfmk.w.at %vm11
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x00,0xb5]
8 vfmk.w %vm11
10 # CHECK-INST: vfmk.w.at %vm1, %vm15
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x01,0x00,0x00,0x0f,0xb5]
12 vfmk.w.at %vm1, %vm15
14 # CHECK-INST: vfmk.w.af %vm1, %vm15
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x0f,0xb5]
16 vfmk.w.af %vm1, %vm15
18 # CHECK-INST: vfmk.w.gt %vm12, %v22
19 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x00,0xb5]
20 vfmk.w.gt %vm12, %v22
22 # CHECK-INST: vfmk.w.lt %vm12, %vix, %vm15
23 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x0f,0xb5]
24 vfmk.w.lt %vm12, %vix, %vm15
26 # CHECK-INST: vfmk.w.ne %vm11, %v32
27 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x00,0xb5]
28 vfmk.w.ne %vm11, %v32
30 # CHECK-INST: vfmk.w.eq %vm1, %vix, %vm15
31 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x0f,0xb5]
32 vfmk.w.eq %vm1, %vix, %vm15
34 # CHECK-INST: vfmk.w.ge %vm12, %v22
35 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x00,0xb5]
36 vfmk.w.ge %vm12, %v22
38 # CHECK-INST: vfmk.w.le %vm12, %vix, %vm15
39 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x0f,0xb5]
40 vfmk.w.le %vm12, %vix, %vm15
42 # CHECK-INST: vfmk.w.at %vm11
43 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x00,0xb5]
44 pvfmk.w.lo %vm11
46 # CHECK-INST: vfmk.w.at %vm1, %vm15
47 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x01,0x00,0x00,0x0f,0xb5]
48 pvfmk.w.lo.at %vm1, %vm15
50 # CHECK-INST: vfmk.w.af %vm1, %vm15
51 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x0f,0xb5]
52 pvfmk.w.lo.af %vm1, %vm15
54 # CHECK-INST: vfmk.w.gt %vm12, %v22
55 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x00,0xb5]
56 pvfmk.w.lo.gt %vm12, %v22
58 # CHECK-INST: vfmk.w.lt %vm12, %vix, %vm15
59 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x0f,0xb5]
60 pvfmk.w.lo.lt %vm12, %vix, %vm15
62 # CHECK-INST: vfmk.w.ne %vm11, %v32
63 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x00,0xb5]
64 pvfmk.w.lo.ne %vm11, %v32
66 # CHECK-INST: vfmk.w.eq %vm1, %vix, %vm15
67 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x0f,0xb5]
68 pvfmk.w.lo.eq %vm1, %vix, %vm15
70 # CHECK-INST: vfmk.w.ge %vm12, %v22
71 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x00,0xb5]
72 pvfmk.w.lo.ge %vm12, %v22
74 # CHECK-INST: vfmk.w.le %vm12, %vix, %vm15
75 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x0f,0xb5]
76 pvfmk.w.lo.le %vm12, %vix, %vm15
78 # CHECK-INST: pvfmk.w.up.at %vm11
79 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x0b,0x00,0x00,0x80,0xb5]
80 pvfmk.w.up %vm11
82 # CHECK-INST: pvfmk.w.up.at %vm1, %vm15
83 # CHECK-ENCODING: encoding: [0x00,0x00,0x0f,0x01,0x00,0x00,0x8f,0xb5]
84 pvfmk.w.up.at %vm1, %vm15
86 # CHECK-INST: pvfmk.w.up.af %vm1, %vm15
87 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x01,0x00,0x00,0x8f,0xb5]
88 pvfmk.w.up.af %vm1, %vm15
90 # CHECK-INST: pvfmk.w.up.gt %vm12, %v22
91 # CHECK-ENCODING: encoding: [0x00,0x16,0x01,0x0c,0x00,0x00,0x80,0xb5]
92 pvfmk.w.up.gt %vm12, %v22
94 # CHECK-INST: pvfmk.w.up.lt %vm12, %vix, %vm15
95 # CHECK-ENCODING: encoding: [0x00,0xff,0x02,0x0c,0x00,0x00,0x8f,0xb5]
96 pvfmk.w.up.lt %vm12, %vix, %vm15
98 # CHECK-INST: pvfmk.w.up.ne %vm11, %v32
99 # CHECK-ENCODING: encoding: [0x00,0x20,0x03,0x0b,0x00,0x00,0x80,0xb5]
100 pvfmk.w.up.ne %vm11, %v32
102 # CHECK-INST: pvfmk.w.up.eq %vm1, %vix, %vm15
103 # CHECK-ENCODING: encoding: [0x00,0xff,0x04,0x01,0x00,0x00,0x8f,0xb5]
104 pvfmk.w.up.eq %vm1, %vix, %vm15
106 # CHECK-INST: pvfmk.w.up.ge %vm12, %v22
107 # CHECK-ENCODING: encoding: [0x00,0x16,0x05,0x0c,0x00,0x00,0x80,0xb5]
108 pvfmk.w.up.ge %vm12, %v22
110 # CHECK-INST: pvfmk.w.up.le %vm12, %vix, %vm15
111 # CHECK-ENCODING: encoding: [0x00,0xff,0x06,0x0c,0x00,0x00,0x8f,0xb5]
112 pvfmk.w.up.le %vm12, %vix, %vm15