[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / Sparc / sparc-coproc.s
blobf83e415cf31e3a7f37475cbba46aaa666b5e9cb9
1 ! RUN: llvm-mc %s -arch=sparc -show-encoding | FileCheck %s
3 ! CHECK: ld [%i1], %c4 ! encoding: [0xc9,0x86,0x40,0x00]
4 ! CHECK: ld [%i1+-15], %c4 ! encoding: [0xc9,0x86,0x7f,0xf1]
5 ! CHECK: ld [%i1+%o3], %c4 ! encoding: [0xc9,0x86,0x40,0x0b]
6 ! CHECK: ld [%i7], %c4 ! encoding: [0xc9,0x87,0xc0,0x00]
7 ! CHECK: ld [%i1], %c19 ! encoding: [0xe7,0x86,0x40,0x00]
8 ld [%i1], %c4
9 ld [%i1 - 15], %c4
10 ld [%i1 +%o3], %c4
11 ld [%i7], %c4
12 ld [%i1], %c19
15 ! CHECK: ldd [%i1], %c4 ! encoding: [0xc9,0x9e,0x40,0x00]
16 ! CHECK: ldd [%i7], %c4 ! encoding: [0xc9,0x9f,0xc0,0x00]
17 ! CHECK: ldd [%i7+200], %c4 ! encoding: [0xc9,0x9f,0xe0,0xc8]
18 ! CHECK: ldd [%i7+%o3], %c4 ! encoding: [0xc9,0x9f,0xc0,0x0b]
19 ! CHECK: ldd [%i1], %c30 ! encoding: [0xfd,0x9e,0x40,0x00]
20 ldd [%i1], %c4
21 ldd [%i7], %c4
22 ldd [%i7 + 200], %c4
23 ldd [%i7+%o3], %c4
24 ldd [%i1], %c30
27 ! CHECK: st %c4, [%i1] ! encoding: [0xc9,0xa6,0x40,0x00]
28 ! CHECK: st %c4, [%i7] ! encoding: [0xc9,0xa7,0xc0,0x00]
29 ! CHECK: st %c4, [%i7+48] ! encoding: [0xc9,0xa7,0xe0,0x30]
30 ! CHECK: st %c4, [%i4+%o2] ! encoding: [0xc9,0xa7,0x00,0x0a]
31 ! CHECK: st %c19, [%i1] ! encoding: [0xe7,0xa6,0x40,0x00]
32 st %c4, [%i1]
33 st %c4, [%i7]
34 st %c4, [%i7+48]
35 st %c4, [%i4+%o2]
36 st %c19, [%i1]
39 ! CHECK: std %c4, [%i1] ! encoding: [0xc9,0xbe,0x40,0x00]
40 ! CHECK: std %c4, [%i7] ! encoding: [0xc9,0xbf,0xc0,0x00]
41 ! CHECK: std %c4, [%i2+-240] ! encoding: [0xc9,0xbe,0xbf,0x10]
42 ! CHECK: std %c4, [%i1+%o5] ! encoding: [0xc9,0xbe,0x40,0x0d]
43 ! CHECK: std %c30, [%i1] ! encoding: [0xfd,0xbe,0x40,0x00]
44 std %c4, [%i1]
45 std %c4, [%i7]
46 std %c4, [%i2-240]
47 std %c4, [%i1+%o5]
48 std %c30, [%i1]
51 ! CHECK: ld [%i5], %csr ! encoding: [0xc1,0x8f,0x40,0x00]
52 ! CHECK: ld [%l2+3], %csr ! encoding: [0xc1,0x8c,0xa0,0x03]
53 ! CHECK: ld [%l4+%l5], %csr ! encoding: [0xc1,0x8d,0x00,0x15]
54 ld [%i5], %csr
55 ld [%l2+3], %csr
56 ld [%l4+%l5], %csr
59 ! CHECK: st %csr, [%i2] ! encoding: [0xc1,0xae,0x80,0x00]
60 ! CHECK: st %csr, [%i2+31] ! encoding: [0xc1,0xae,0xa0,0x1f]
61 ! CHECK: st %csr, [%i2+%o2] ! encoding: [0xc1,0xae,0x80,0x0a]
62 st %csr, [%i2]
63 st %csr, [%i2+31]
64 st %csr, [%i2+%o2]
66 ! CHECK: std %cq, [%o3] ! encoding: [0xc1,0xb2,0xc0,0x00]
67 ! CHECK: std %cq, [%o3+-93] ! encoding: [0xc1,0xb2,0xff,0xa3]
68 ! CHECK: std %cq, [%o3+%l5] ! encoding: [0xc1,0xb2,0xc0,0x15]
69 std %cq, [%o3]
70 std %cq, [%o3-93]
71 std %cq, [%o3+%l5]