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: vsum.l %v11, %v12
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x0c,0x0b,0x00,0x00,0x00,0xaa]
10 # CHECK-INST: vsum.l %v11, %vix, %vm11
11 # CHECK-ENCODING: encoding: [0x00,0x00,0xff,0x0b,0x00,0x00,0x0b,0xaa]
12 vsum.
l %v11
, %vix
, %vm11
14 # CHECK-INST: vsum.l %vix, %v22, %vm15
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x16,0xff,0x00,0x00,0x0f,0xaa]
16 vsum.
l %vix
, %v22
, %vm15
18 # CHECK-INST: vsum.l %v63, %v60, %vm2
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x3c,0x3f,0x00,0x00,0x02,0xaa]
20 vsum.
l %v63
, %v60
, %vm2
22 # CHECK-INST: vsum.l %vix, %vix
23 # CHECK-ENCODING: encoding: [0x00,0x00,0xff,0xff,0x00,0x00,0x00,0xaa]
24 vsum.
l %vix
, %vix
, %vm0
26 # CHECK-INST: vsum.l %vix, %vix, %vm2
27 # CHECK-ENCODING: encoding: [0x00,0x00,0xff,0xff,0x00,0x00,0x02,0xaa]
28 vsum.
l %vix
, %vix
, %vm2