[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / CAS.s
blobd978d98db621c03c90360a2bec8dea20cd2c05d2
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: cas.l %s20, 20(%s11), %s32
7 # CHECK-ENCODING: encoding: [0x14,0x00,0x00,0x00,0x8b,0xa0,0x14,0x62]
8 cas.l %s20, 20(%s11), %s32
10 # CHECK-INST: cas.w %s20, 8192, 63
11 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x00,0x3f,0x94,0x62]
12 cas.w %s20, 8192, 63
14 # CHECK-INST: cas.w %s20, 8192, -64
15 # CHECK-ENCODING: encoding: [0x00,0x20,0x00,0x00,0x00,0x40,0x94,0x62]
16 cas.w %s20, 8192, -64