[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / SLA.s
blob3f5708a8e1aac646574e840936ea8eb09641fbf1
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: sla.w.sx %s11, %s11, %s11
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x8b,0x0b,0x66]
8 sla.w.sx %s11, %s11, %s11
10 # CHECK-INST: sla.w.zx %s11, %s11, 63
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x3f,0x8b,0x66]
12 sla.w.zx %s11, %s11, 63
14 # CHECK-INST: sla.l %s11, %s11, 127
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x7f,0x0b,0x57]
16 sla.l %s11, %s11, 127
18 # CHECK-INST: sla.w.sx %s11, %s11, 64
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x8b,0x40,0x0b,0x66]
20 sla.w.sx %s11, %s11, 64
22 # CHECK-INST: sla.w.zx %s11, (32)1, 64
23 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x20,0x40,0x8b,0x66]
24 sla.w.zx %s11, (32)1, 64
26 # CHECK-INST: sla.l %s11, (32)0, 63
27 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x60,0x3f,0x0b,0x57]
28 sla.l %s11, (32)0, 63