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
5
6# CHECK-INST: cvt.w.s.sx %s11, %s12
7# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x00,0x8c,0x8b,0x4e]
8cvt.w.s.sx %s11, %s12
9
10# CHECK-INST: cvt.w.s.sx.rz %s11, 63
11# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x08,0x3f,0x8b,0x4e]
12cvt.w.s.sx.rz %s11, 63
13
14# CHECK-INST: cvt.w.s.sx.rp %s11, -64
15# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x09,0x40,0x8b,0x4e]
16cvt.w.s.sx.rp %s11, -64
17
18# CHECK-INST: cvt.w.s.sx.rm %s11, -1
19# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x0a,0x7f,0x8b,0x4e]
20cvt.w.s.sx.rm %s11, -1
21
22# CHECK-INST: cvt.w.s.sx.rn %s11, 7
23# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x0b,0x07,0x8b,0x4e]
24cvt.w.s.sx.rn %s11, 7
25
26# CHECK-INST: cvt.w.s.sx.ra %s11, %s63
27# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x0c,0xbf,0x8b,0x4e]
28cvt.w.s.sx.ra %s11, %s63
29
30# CHECK-INST: cvt.w.s.zx %s11, %s12
31# CHECK-ENCODING: encoding: [0x80,0x00,0x00,0x00,0x00,0x8c,0x8b,0x4e]
32cvt.w.s.zx %s11, %s12
33
34# CHECK-INST: cvt.w.s.zx.rz %s11, 63
35# CHECK-ENCODING: encoding: [0x80,0x00,0x00,0x00,0x08,0x3f,0x8b,0x4e]
36cvt.w.s.zx.rz %s11, 63
37
38# CHECK-INST: cvt.w.s.zx.rp %s11, -64
39# CHECK-ENCODING: encoding: [0x80,0x00,0x00,0x00,0x09,0x40,0x8b,0x4e]
40cvt.w.s.zx.rp %s11, -64
41
42# CHECK-INST: cvt.w.s.zx.rm %s11, -1
43# CHECK-ENCODING: encoding: [0x80,0x00,0x00,0x00,0x0a,0x7f,0x8b,0x4e]
44cvt.w.s.zx.rm %s11, -1
45
46# CHECK-INST: cvt.w.s.zx.rn %s11, 7
47# CHECK-ENCODING: encoding: [0x80,0x00,0x00,0x00,0x0b,0x07,0x8b,0x4e]
48cvt.w.s.zx.rn %s11, 7
49
50# CHECK-INST: cvt.w.s.zx.ra %s11, %s63
51# CHECK-ENCODING: encoding: [0x80,0x00,0x00,0x00,0x0c,0xbf,0x8b,0x4e]
52cvt.w.s.zx.ra %s11, %s63
53