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: sra.w.sx %s11, %s11, %s11
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x8b,0x0b,0x76]
8 sra.w.sx
%s11
, %s11
, %s11
10 # CHECK-INST: sra.w.zx %s11, %s11, 63
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x3f,0x8b,0x76]
12 sra.w.zx
%s11
, %s11
, 63
14 # CHECK-INST: sra.l %s11, %s11, 127
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x7f,0x0b,0x77]
18 # CHECK-INST: sra.w.sx %s11, %s11, 64
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x40,0x0b,0x76]
20 sra.w.sx
%s11
, %s11
, 64
22 # CHECK-INST: sra.w.zx %s11, (32)1, 64
23 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x20,0x40,0x8b,0x76]
24 sra.w.zx
%s11
, (32)1, 64
26 # CHECK-INST: sra.l %s11, (32)0, 63
27 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x60,0x3f,0x0b,0x77]