xref: /llvm-project/llvm/test/MC/VE/MUL.s (revision 58b810b579a8fbe58bac24f7d573f8511c22854c)
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
5
6# CHECK-INST: mulu.l %s11, %s20, %s22
7# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x96,0x94,0x0b,0x49]
8mulu.l %s11, %s20, %s22
9
10# CHECK-INST: mulu.w %s11, 22, %s22
11# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x96,0x16,0x8b,0x49]
12mulu.w %s11, 22, %s22
13
14# CHECK-INST: muls.w.sx %s11, 63, (60)1
15# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x3c,0x3f,0x0b,0x4b]
16muls.w.sx %s11, 63, (60)1
17
18# CHECK-INST: muls.w.zx %s11, -64, %s22
19# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x96,0x40,0x8b,0x4b]
20muls.w.zx %s11, -64, %s22
21
22# CHECK-INST: muls.l %s11, -64, (22)0
23# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x56,0x40,0x0b,0x6e]
24muls.l %s11, -64, (22)0
25
26# CHECK-INST: muls.l.w %s11, -64, (22)0
27# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x00,0x56,0x40,0x0b,0x6b]
28muls.l.w %s11, -64, (22)0
29