[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / MC / AMDGPU / gfx7_asm_exp.s
blob8c5fafa405642d2f217defa47ff95d3836d56845
1 // RUN: llvm-mc -arch=amdgcn -mcpu=bonaire -show-encoding %s | FileCheck %s
3 exp mrt0 v0, v0, v0, v0
4 // CHECK: [0x0f,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
6 exp mrtz v0, v0, v0, v0
7 // CHECK: [0x8f,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
9 exp null v0, v0, v0, v0
10 // CHECK: [0x9f,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
12 exp pos0 v0, v0, v0, v0
13 // CHECK: [0xcf,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
15 exp param0 v0, v0, v0, v0
16 // CHECK: [0x0f,0x02,0x00,0xf8,0x00,0x00,0x00,0x00]
18 exp mrt0 v255, v0, v0, v0
19 // CHECK: [0x0f,0x00,0x00,0xf8,0xff,0x00,0x00,0x00]
21 exp mrt0 v0, v255, v0, v0
22 // CHECK: [0x0f,0x00,0x00,0xf8,0x00,0xff,0x00,0x00]
24 exp mrt0 v0, v0, v255, v0
25 // CHECK: [0x0f,0x00,0x00,0xf8,0x00,0x00,0xff,0x00]
27 exp mrt0 v0, v0, v0, v255
28 // CHECK: [0x0f,0x00,0x00,0xf8,0x00,0x00,0x00,0xff]
30 exp mrt0 v0, off, off, off
31 // CHECK: [0x01,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
33 exp mrt0 off, v0, off, off
34 // CHECK: [0x02,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
36 exp mrt0 v0, v0, off, off
37 // CHECK: [0x03,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
39 exp mrt0 off, off, v0, off
40 // CHECK: [0x04,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
42 exp mrt0 v0, off, v0, off
43 // CHECK: [0x05,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
45 exp mrt0 off, v0, v0, off
46 // CHECK: [0x06,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
48 exp mrt0 v0, v0, v0, off
49 // CHECK: [0x07,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
51 exp mrt0 off, off, off, v0
52 // CHECK: [0x08,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
54 exp mrt0 v0, off, off, v0
55 // CHECK: [0x09,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
57 exp mrt0 off, v0, off, v0
58 // CHECK: [0x0a,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
60 exp mrt0 v0, v0, off, v0
61 // CHECK: [0x0b,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
63 exp mrt0 off, off, v0, v0
64 // CHECK: [0x0c,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
66 exp mrt0 v0, off, v0, v0
67 // CHECK: [0x0d,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
69 exp mrt0 off, v0, v0, v0
70 // CHECK: [0x0e,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
72 exp mrt0 off, off, off, off
73 // CHECK: [0x00,0x00,0x00,0xf8,0x00,0x00,0x00,0x00]
75 exp mrt0 v0, v0, v0, v0 done
76 // CHECK: [0x0f,0x08,0x00,0xf8,0x00,0x00,0x00,0x00]
78 exp mrt0 v0, v0, v0, v0 compr
79 // CHECK: [0x0f,0x04,0x00,0xf8,0x00,0x00,0x00,0x00]
81 exp mrt0 v0, v0, v0, v0 vm
82 // CHECK: [0x0f,0x10,0x00,0xf8,0x00,0x00,0x00,0x00]