[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / VSHF.s
blob2047704c1fc4c61adfd7e8c1bc1ab297c9670f5f
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: vshf %v11, %v20, %v22, %s20
7 # CHECK-ENCODING: encoding: [0x00,0x16,0x14,0x0b,0x00,0x94,0x00,0xbc]
8 vshf %v11, %v20, %v22, %s20
10 # CHECK-INST: vshf %vix, %vix, %vix, 0
11 # CHECK-ENCODING: encoding: [0x00,0xff,0xff,0xff,0x00,0x00,0x00,0xbc]
12 vshf %vix, %vix, %vix, 0
14 # CHECK-INST: vshf %vix, %vix, %v22, 15
15 # CHECK-ENCODING: encoding: [0x00,0x16,0xff,0xff,0x00,0x0f,0x00,0xbc]
16 vshf %vix, %vix, %v22, 15
18 # CHECK-INST: vshf %v11, %vix, %v22, 12
19 # CHECK-ENCODING: encoding: [0x00,0x16,0xff,0x0b,0x00,0x0c,0x00,0xbc]
20 vshf %v11, %vix, %v22, 12
22 # CHECK-INST: vshf %v11, %v23, %v22, %s63
23 # CHECK-ENCODING: encoding: [0x00,0x16,0x17,0x0b,0x00,0xbf,0x00,0xbc]
24 vshf %v11, %v23, %v22, %s63