[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / DLD.s
blob4896545979d2a94ad28d0c97d689860a57c70ea9
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: dld %s11, 8199
7 # CHECK-ENCODING: encoding: [0x07,0x20,0x00,0x00,0x00,0x00,0x0b,0x09]
8 dld %s11, 8199
10 # CHECK-INST: dld %s11, 20(%s11)
11 # CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x00,0x8b,0x0b,0x09]
12 dld %s11, 20(%s11)
14 # CHECK-INST: dld %s11, -1(, %s11)
15 # CHECK-ENCODING: encoding: [0xff,0xff,0xff,0xff,0x8b,0x00,0x0b,0x09]
16 dld %s11, -1(, %s11)
18 # CHECK-INST: dld %s11, 20(%s10, %s11)
19 # CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x8b,0x8a,0x0b,0x09]
20 dld %s11, 20(%s10, %s11)
22 # CHECK-INST: dldu %s11, 20(%s10, %s11)
23 # CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x8b,0x8a,0x0b,0x0a]
24 dldu %s11, 20(%s10, %s11)
26 # CHECK-INST: dldl.sx %s11, 20(%s10, %s11)
27 # CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x8b,0x8a,0x0b,0x0b]
28 dldl.sx %s11, 20(%s10, %s11)
30 # CHECK-INST: dldl.zx %s11, 20(%s10, %s11)
31 # CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x8b,0x8a,0x8b,0x0b]
32 dldl.zx %s11, 20(%s10, %s11)