[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / ADD.s
blob9cdc97e0021a98e19894a2b5c7d5bab63b555b03
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: addu.l %s11, %s20, %s22
7 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x96,0x94,0x0b,0x48]
8 addu.l %s11, %s20, %s22
10 # CHECK-INST: addu.w %s11, 22, %s22
11 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x96,0x16,0x8b,0x48]
12 addu.w %s11, 22, %s22
14 # CHECK-INST: adds.w.sx %s11, 63, (60)1
15 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x3c,0x3f,0x0b,0x4a]
16 adds.w.sx %s11, 63, (60)1
18 # CHECK-INST: adds.w.zx %s11, -64, %s22
19 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x96,0x40,0x8b,0x4a]
20 adds.w.zx %s11, -64, %s22
22 # CHECK-INST: adds.l %s11, -64, (22)0
23 # CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x56,0x40,0x0b,0x59]
24 adds.l %s11, -64, (22)0