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: vsfa %v11, %v22, %s20, (22)0
7 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x56,0x94,0x00,0xd7]
8 vsfa
%v11
, %v22
, %s20
, (22)0
10 # CHECK-INST: vsfa %vix, %vix, 0, %s21
11 # CHECK-ENCODING: encoding: [0x00,0xff,0x00,0xff,0x95,0x00,0x00,0xd7]
12 vsfa
%vix
, %vix
, 0, %s21
14 # CHECK-INST: vsfa %vix, %v22, 7, (22)1
15 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0xff,0x16,0x07,0x00,0xd7]
16 vsfa
%vix
, %v22
, 7, (22)1
18 # CHECK-INST: vsfa %v11, %v22, %s20, %s21, %vm11
19 # CHECK-ENCODING: encoding: [0x00,0x16,0x00,0x0b,0x95,0x94,0x0b,0xd7]
20 vsfa
%v11
, %v22
, %s20
, %s21
, %vm11
22 # CHECK-INST: vsfa %v11, %v23, %s22, (63)0, %vm11
23 # CHECK-ENCODING: encoding: [0x00,0x17,0x00,0x0b,0x7f,0x96,0x0b,0xd7]
24 vsfa
%v11
, %v23
, %s22
, (63)0, %vm11