[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / VE / CMOV.s
blob990309d95c45c6f75da46bfaf55d06bd27d76ee8
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: cmov.l.at %s11, %s12, 63
7 # CHECK-ENCODING: encoding: [0x0f,0x00,0x00,0x00,0x8c,0x3f,0x0b,0x3b]
8 cmov.l %s11, %s12, 63
10 # CHECK-INST: cmov.w.at %s11, %s12, %s13
11 # CHECK-ENCODING: encoding: [0x8f,0x00,0x00,0x00,0x8c,0x8d,0x0b,0x3b]
12 cmov.w.at %s11, %s12, %s13
14 # CHECK-INST: cmov.d.af %s11, (20)0, %s12
15 # CHECK-ENCODING: encoding: [0x40,0x00,0x00,0x00,0x54,0x8c,0x0b,0x3b]
16 cmov.d.af %s11, (20)0, %s12
18 # CHECK-INST: cmov.s.gt %s11, (63)1, %s12
19 # CHECK-ENCODING: encoding: [0xc1,0x00,0x00,0x00,0x3f,0x8c,0x0b,0x3b]
20 cmov.s.gt %s11, (63)1, %s12
22 # CHECK-INST: cmov.l.lt %s11, %s12, 63
23 # CHECK-ENCODING: encoding: [0x02,0x00,0x00,0x00,0x8c,0x3f,0x0b,0x3b]
24 cmov.l.lt %s11, %s12, 63
26 # CHECK-INST: cmov.w.ne %s11, %s12, %s13
27 # CHECK-ENCODING: encoding: [0x83,0x00,0x00,0x00,0x8c,0x8d,0x0b,0x3b]
28 cmov.w.ne %s11, %s12, %s13
30 # CHECK-INST: cmov.d.eq %s11, (20)0, %s12
31 # CHECK-ENCODING: encoding: [0x44,0x00,0x00,0x00,0x54,0x8c,0x0b,0x3b]
32 cmov.d.eq %s11, (20)0, %s12
34 # CHECK-INST: cmov.s.ge %s11, (63)1, %s12
35 # CHECK-ENCODING: encoding: [0xc5,0x00,0x00,0x00,0x3f,0x8c,0x0b,0x3b]
36 cmov.s.ge %s11, (63)1, %s12
38 # CHECK-INST: cmov.l.le %s11, %s12, 63
39 # CHECK-ENCODING: encoding: [0x06,0x00,0x00,0x00,0x8c,0x3f,0x0b,0x3b]
40 cmov.l.le %s11, %s12, 63
42 # CHECK-INST: cmov.d.num %s11, %s12, %s13
43 # CHECK-ENCODING: encoding: [0x47,0x00,0x00,0x00,0x8c,0x8d,0x0b,0x3b]
44 cmov.d.num %s11, %s12, %s13
46 # CHECK-INST: cmov.s.nan %s11, (63)1, %s12
47 # CHECK-ENCODING: encoding: [0xc8,0x00,0x00,0x00,0x3f,0x8c,0x0b,0x3b]
48 cmov.s.nan %s11, (63)1, %s12
50 # CHECK-INST: cmov.d.gtnan %s11, %s12, %s13
51 # CHECK-ENCODING: encoding: [0x49,0x00,0x00,0x00,0x8c,0x8d,0x0b,0x3b]
52 cmov.d.gtnan %s11, %s12, %s13
54 # CHECK-INST: cmov.s.ltnan %s11, (63)1, %s12
55 # CHECK-ENCODING: encoding: [0xca,0x00,0x00,0x00,0x3f,0x8c,0x0b,0x3b]
56 cmov.s.ltnan %s11, (63)1, %s12
58 # CHECK-INST: cmov.d.nenan %s11, %s12, %s13
59 # CHECK-ENCODING: encoding: [0x4b,0x00,0x00,0x00,0x8c,0x8d,0x0b,0x3b]
60 cmov.d.nenan %s11, %s12, %s13
62 # CHECK-INST: cmov.s.eqnan %s11, (63)1, %s12
63 # CHECK-ENCODING: encoding: [0xcc,0x00,0x00,0x00,0x3f,0x8c,0x0b,0x3b]
64 cmov.s.eqnan %s11, (63)1, %s12
66 # CHECK-INST: cmov.d.genan %s11, %s12, %s13
67 # CHECK-ENCODING: encoding: [0x4d,0x00,0x00,0x00,0x8c,0x8d,0x0b,0x3b]
68 cmov.d.genan %s11, %s12, %s13
70 # CHECK-INST: cmov.s.lenan %s11, (63)1, %s12
71 # CHECK-ENCODING: encoding: [0xce,0x00,0x00,0x00,0x3f,0x8c,0x0b,0x3b]
72 cmov.s.lenan %s11, (63)1, %s12