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