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: vld %v11, 23, %s12
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x8c,0x17,0x40,0x81]
10 # CHECK-INST: vld.nc %vix, 63, %s22
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x96,0x3f,0x00,0x81]
14 # CHECK-INST: vldu %v63, -64, %s63
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x3f,0xbf,0x40,0x40,0x82]
18 # CHECK-INST: vldu.nc %v12, %s12, 0
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0c,0x00,0x8c,0x00,0x82]
22 # CHECK-INST: vldl.sx %v11, 23, %s12
23 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x8c,0x17,0x40,0x83]
24 vldl.sx
%v11
, 23, %s12
26 # CHECK-INST: vldl.sx.nc %vix, 63, %s22
27 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x96,0x3f,0x00,0x83]
28 vldl.sx.nc
%vix
, 63, %s22
30 # CHECK-INST: vldl.zx %v63, -64, 0
31 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x3f,0x00,0x40,0xc0,0x83]
34 # CHECK-INST: vldl.zx.nc %v12, %s12, %s63
35 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0c,0xbf,0x8c,0x80,0x83]
36 vldl.zx.nc
%v12
, %s12
, %s63
38 # CHECK-INST: vld2d %v11, 23, %s12
39 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x8c,0x17,0x40,0xc1]
42 # CHECK-INST: vld2d.nc %vix, 63, %s22
43 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x96,0x3f,0x00,0xc1]
44 vld2d.nc
%vix
, 63, %s22
46 # CHECK-INST: vldu2d %v63, -64, %s63
47 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x3f,0xbf,0x40,0x40,0xc2]
48 vldu2d
%v63
, -64, %s63
50 # CHECK-INST: vldu2d.nc %v12, %s12, 0
51 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0c,0x00,0x8c,0x00,0xc2]
52 vldu2d.nc
%v12
, %s12
, 0
54 # CHECK-INST: vldl2d.sx %v11, 23, %s12
55 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x8c,0x17,0x40,0xc3]
56 vldl2d.sx
%v11
, 23, %s12
58 # CHECK-INST: vldl2d.sx.nc %vix, 63, %s22
59 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x96,0x3f,0x00,0xc3]
60 vldl2d.sx.nc
%vix
, 63, %s22
62 # CHECK-INST: vldl2d.zx %v63, -64, 0
63 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x3f,0x00,0x40,0xc0,0xc3]
64 vldl2d.zx
%v63
, -64, 0
66 # CHECK-INST: vldl2d.zx.nc %v12, %s12, %s63
67 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0c,0xbf,0x8c,0x80,0xc3]
68 vldl2d.zx.nc
%v12
, %s12
, %s63