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: vmaxs.w.sx %v11, %s20, %v22
7 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x94,0x20,0x8a]
8 vmaxs.w.sx
%v11
, %s20
, %v22
10 # CHECK-INST: vmaxs.w.sx %vix, %vix, %vix
11 # CHECK-ENCODING: encoding: [0x00,0xff,0xff,0xff,0x00,0x00,0x00,0x8a]
12 vmaxs.w.sx
%vix
, %vix
, %vix
14 # CHECK-INST: pvmaxs.lo %vix, 22, %v22
15 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0xff,0x00,0x16,0x60,0x8a]
16 vmaxs.w.zx
%vix
, 22, %v22
18 # CHECK-INST: pvmaxs.lo %vix, 22, %v22
19 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0xff,0x00,0x16,0x60,0x8a]
20 vmaxs.w
%vix
, 22, %v22
22 # CHECK-INST: pvmaxs.lo %v11, 63, %v22, %vm11
23 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x6b,0x8a]
24 pvmaxs.lo
%v11
, 63, %v22
, %vm11
26 # CHECK-INST: vmaxs.w.sx %v11, 63, %v22, %vm11
27 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x2b,0x8a]
28 pvmaxs.lo.sx
%v11
, 63, %v22
, %vm11
30 # CHECK-INST: pvmaxs.lo %v11, 63, %v22, %vm11
31 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x6b,0x8a]
32 pvmaxs.lo.zx
%v11
, 63, %v22
, %vm11
34 # CHECK-INST: pvmaxs.up %v11, %vix, %v22, %vm11
35 # CHECK-ENCODING: encoding: [0x00,0x16,0xff,0x0b,0x00,0x00,0x8b,0x8a]
36 pvmaxs.up
%v11
, %vix
, %v22
, %vm11
38 # CHECK-INST: pvmaxs %v12, %v20, %v22, %vm12
39 # CHECK-ENCODING: encoding: [0x00,0x16,0x14,0x0c,0x00,0x00,0xcc,0x8a]
40 pvmaxs
%v12
, %v20
, %v22
, %vm12
42 # CHECK-INST: vmins.w.sx %v11, %s20, %v22
43 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x94,0x30,0x8a]
44 vmins.w.sx
%v11
, %s20
, %v22
46 # CHECK-INST: vmins.w.sx %vix, %vix, %vix
47 # CHECK-ENCODING: encoding: [0x00,0xff,0xff,0xff,0x00,0x00,0x10,0x8a]
48 vmins.w.sx
%vix
, %vix
, %vix
50 # CHECK-INST: pvmins.lo %vix, 22, %v22
51 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0xff,0x00,0x16,0x70,0x8a]
52 vmins.w.zx
%vix
, 22, %v22
54 # CHECK-INST: pvmins.lo %vix, 22, %v22
55 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0xff,0x00,0x16,0x70,0x8a]
56 vmins.w
%vix
, 22, %v22
58 # CHECK-INST: pvmins.lo %v11, 63, %v22, %vm11
59 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x7b,0x8a]
60 pvmins.lo
%v11
, 63, %v22
, %vm11
62 # CHECK-INST: vmins.w.sx %v11, 63, %v22, %vm11
63 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x3b,0x8a]
64 pvmins.lo.sx
%v11
, 63, %v22
, %vm11
66 # CHECK-INST: pvmins.lo %v11, 63, %v22, %vm11
67 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x00,0x3f,0x7b,0x8a]
68 pvmins.lo.zx
%v11
, 63, %v22
, %vm11
70 # CHECK-INST: pvmins.up %v11, %vix, %v22, %vm11
71 # CHECK-ENCODING: encoding: [0x00,0x16,0xff,0x0b,0x00,0x00,0x9b,0x8a]
72 pvmins.up
%v11
, %vix
, %v22
, %vm11
74 # CHECK-INST: pvmins %v12, %v20, %v22, %vm12
75 # CHECK-ENCODING: encoding: [0x00,0x16,0x14,0x0c,0x00,0x00,0xdc,0x8a]
76 pvmins
%v12
, %v20
, %v22
, %vm12