• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: vsc %v11, %v13, 23, %s12
7# CHECK-ENCODING: encoding: [0x00,0x00,0x0d,0x0b,0x8c,0x17,0x40,0xb1]
8vsc %v11, %v13, 23, %s12
9
10# CHECK-INST: vsc.nc %vix, %s12, 63, 0
11# CHECK-ENCODING: encoding: [0x0c,0x00,0x00,0xff,0x00,0x3f,0x20,0xb1]
12vsc.nc %vix, %s12, 63, 0
13
14# CHECK-INST: vsc.ot %v63, %vix, -64, %s63
15# CHECK-ENCODING: encoding: [0x00,0x00,0xff,0x3f,0xbf,0x40,0xc0,0xb1]
16vsc.ot %v63, %vix, -64, %s63
17
18# CHECK-INST: vsc.nc.ot %v12, %v63, %s12, 0, %vm3
19# CHECK-ENCODING: encoding: [0x00,0x00,0x3f,0x0c,0x00,0x8c,0x83,0xb1]
20vsc.nc.ot %v12, %v63, %s12, 0, %vm3
21
22# CHECK-INST: vscu %v11, %v13, 23, %s12
23# CHECK-ENCODING: encoding: [0x00,0x00,0x0d,0x0b,0x8c,0x17,0x40,0xb2]
24vscu %v11, %v13, 23, %s12
25
26# CHECK-INST: vscu.nc %vix, %s12, 63, 0
27# CHECK-ENCODING: encoding: [0x0c,0x00,0x00,0xff,0x00,0x3f,0x20,0xb2]
28vscu.nc %vix, %s12, 63, 0
29
30# CHECK-INST: vscu.ot %v63, %vix, -64, %s63
31# CHECK-ENCODING: encoding: [0x00,0x00,0xff,0x3f,0xbf,0x40,0xc0,0xb2]
32vscu.ot %v63, %vix, -64, %s63
33
34# CHECK-INST: vscu.nc.ot %v12, %v63, %s12, 0, %vm3
35# CHECK-ENCODING: encoding: [0x00,0x00,0x3f,0x0c,0x00,0x8c,0x83,0xb2]
36vscu.nc.ot %v12, %v63, %s12, 0, %vm3
37
38# CHECK-INST: vscl %v11, %v13, 23, %s12
39# CHECK-ENCODING: encoding: [0x00,0x00,0x0d,0x0b,0x8c,0x17,0x40,0xb3]
40vscl %v11, %v13, 23, %s12
41
42# CHECK-INST: vscl.ot %vix, %s12, 63, 0
43# CHECK-ENCODING: encoding: [0x0c,0x00,0x00,0xff,0x00,0x3f,0xe0,0xb3]
44vscl.ot %vix, %s12, 63, 0
45
46# CHECK-INST: vscl.nc %v63, %vix, -64, %s63
47# CHECK-ENCODING: encoding: [0x00,0x00,0xff,0x3f,0xbf,0x40,0x00,0xb3]
48vscl.nc %v63, %vix, -64, %s63
49
50# CHECK-INST: vscl.nc.ot %v12, %v63, %s12, 0, %vm3
51# CHECK-ENCODING: encoding: [0x00,0x00,0x3f,0x0c,0x00,0x8c,0x83,0xb3]
52vscl.nc.ot %v12, %v63, %s12, 0, %vm3
53