• 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: sll %s11, %s11, %s11
7# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x8b,0x0b,0x65]
8sll %s11, %s11, %s11
9
10# CHECK-INST: sll %s11, %s11, 63
11# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x3f,0x0b,0x65]
12sll %s11, %s11, 63
13
14# CHECK-INST: sll %s11, %s11, 127
15# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x7f,0x0b,0x65]
16sll %s11, %s11, 127
17
18# CHECK-INST: sll %s11, %s11, 64
19# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x40,0x0b,0x65]
20sll %s11, %s11, 64
21
22# CHECK-INST: sll %s11, (32)1, 35
23# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x20,0x23,0x0b,0x65]
24sll %s11, (32)1, 35
25
26# CHECK-INST: sll %s11, (32)0, 23
27# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x60,0x17,0x0b,0x65]
28sll %s11, (32)0, 23
29