[AMDGPU] Check for immediate SrcC in mfma in AsmParser
[llvm-core.git] / test / MC / AMDGPU / mtbuf-gfx10.s
blobea3f9df9bb5e7f8d413cbc57c3f06bba65ea4e69
1 // RUN: llvm-mc -arch=amdgcn -mcpu=gfx1010 -show-encoding %s | FileCheck -check-prefix=GCN -check-prefix=GFX10 %s
3 // GFX10: tbuffer_load_format_d16_x v0, off, s[0:3], format:22, 0 ; encoding: [0x00,0x00,0xb0,0xe8,0x00,0x00,0x20,0x80]
4 tbuffer_load_format_d16_x v0, off, s[0:3], format:22, 0
5 // GFX10: tbuffer_load_format_d16_xy v0, off, s[0:3], format:22, 0 ; encoding: [0x00,0x00,0xb1,0xe8,0x00,0x00,0x20,0x80]
6 tbuffer_load_format_d16_xy v0, off, s[0:3], format:22, 0
7 // GFX10: tbuffer_load_format_d16_xyzw v[0:1], off, s[0:3], format:22, 0 ; encoding: [0x00,0x00,0xb3,0xe8,0x00,0x00,0x20,0x80]
8 tbuffer_load_format_d16_xyzw v[0:1], off, s[0:3], format:22, 0
9 // GFX10: tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0 ; encoding: [0x00,0x00,0x73,0xea,0x00,0x00,0x00,0x80]
10 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0
11 // GFX10: tbuffer_load_format_xyzw v[8:11], off, s[0:3], format:22, 0 slc ; encoding: [0x00,0x00,0xb3,0xe8,0x00,0x08,0x40,0x80]
12 tbuffer_load_format_xyzw v[8:11], off, s[0:3], format:22, 0 slc
13 // GFX10: tbuffer_load_format_xyzw v[4:7], off, s[0:3], format:63, 0 glc ; encoding: [0x00,0x40,0xfb,0xe9,0x00,0x04,0x00,0x80]
14 tbuffer_load_format_xyzw v[4:7], off, s[0:3], format:63, 0 glc
15 // GFX10: tbuffer_load_format_xyzw v[12:15], off, s[0:3], format:23, 0 glc dlc ; encoding: [0x00,0xc0,0xbb,0xe8,0x00,0x0c,0x00,0x80]
16 tbuffer_load_format_xyzw v[12:15], off, s[0:3], format:23, 0 glc dlc
17 // GFX10: tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0 offset:42 ; encoding: [0x2a,0x00,0x73,0xea,0x00,0x00,0x00,0x80]
18 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:78, 0 offset:42
19 // GFX10: tbuffer_load_format_xyzw v[4:7], off, s[0:3], format:62, s4 offset:73 ; encoding: [0x49,0x00,0xf3,0xe9,0x00,0x04,0x00,0x04]
20 tbuffer_load_format_xyzw v[4:7], off, s[0:3], format:62, s4 offset:73
21 // GFX10: tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:47, 61 offset:4095 ; encoding: [0xff,0x0f,0x7b,0xe9,0x00,0x00,0x00,0xbd]
22 tbuffer_load_format_xyzw v[0:3], off, s[0:3], format:47, 61 offset:4095
23 // GFX10: tbuffer_load_format_xyzw v[8:11], off, s[0:3], format:77, s4 offset:1 ; encoding: [0x01,0x00,0x6b,0xea,0x00,0x08,0x00,0x04]
24 tbuffer_load_format_xyzw v[8:11], off, s[0:3], format:77, s4 offset:1
25 // GFX10: tbuffer_load_format_xyzw v[0:3], v0, s[0:3], format:78, 0 idxen ; encoding: [0x00,0x20,0x73,0xea,0x00,0x00,0x00,0x80]
26 tbuffer_load_format_xyzw v[0:3], v0, s[0:3], format:78, 0 idxen
27 // GFX10: tbuffer_load_format_xyzw v[0:3], v0, s[0:3], format:78, 0 offen ; encoding: [0x00,0x10,0x73,0xea,0x00,0x00,0x00,0x80]
28 tbuffer_load_format_xyzw v[0:3], v0, s[0:3], format:78, 0 offen
29 // GFX10: tbuffer_load_format_xyzw v[0:3], v0, s[0:3], format:78, 0 offen offset:52 ; encoding: [0x34,0x10,0x73,0xea,0x00,0x00,0x00,0x80]
30 tbuffer_load_format_xyzw v[0:3], v0, s[0:3], format:78, 0 offen offset:52
31 // GFX10: tbuffer_load_format_xyzw v[0:3], v[0:1], s[0:3], format:78, 0 idxen offen ; encoding: [0x00,0x30,0x73,0xea,0x00,0x00,0x00,0x80]
32 tbuffer_load_format_xyzw v[0:3], v[0:1], s[0:3], format:78, 0 idxen offen
33 // GFX10: tbuffer_load_format_xy v[0:1], off, s[0:3], format:77, 0 ; encoding: [0x00,0x00,0x69,0xea,0x00,0x00,0x00,0x80]
34 tbuffer_load_format_xy v[0:1], off, s[0:3], format:77, 0
35 // GFX10: tbuffer_load_format_x v0, off, s[0:3], format:77, 0 ; encoding: [0x00,0x00,0x68,0xea,0x00,0x00,0x00,0x80]
36 tbuffer_load_format_x v0, off, s[0:3], format:77, 0
37 // GFX10: tbuffer_store_format_d16_x v0, v1, s[4:7], format:33, 0 idxen ; encoding: [0x00,0x20,0x0c,0xe9,0x01,0x00,0x21,0x80]
38 tbuffer_store_format_d16_x v0, v1, s[4:7], format:33, 0 idxen
39 // GFX10: tbuffer_store_format_d16_xy v0, v1, s[4:7], format:33, 0 idxen ; encoding: [0x00,0x20,0x0d,0xe9,0x01,0x00,0x21,0x80]
40 tbuffer_store_format_d16_xy v0, v1, s[4:7], format:33, 0 idxen
41 // GFX10: tbuffer_store_format_d16_xyzw v[0:1], v2, s[4:7], format:33, 0 idxen ; encoding: [0x00,0x20,0x0f,0xe9,0x02,0x00,0x21,0x80]
42 tbuffer_store_format_d16_xyzw v[0:1], v2, s[4:7], format:33, 0 idxen
43 // GFX10: tbuffer_store_format_xyzw v[0:3], off, s[0:3], format:44, 0 ; encoding: [0x00,0x00,0x67,0xe9,0x00,0x00,0x00,0x80]
44 tbuffer_store_format_xyzw v[0:3], off, s[0:3], format:44, 0
45 // GFX10: tbuffer_store_format_xyzw v[4:7], off, s[0:3], format:61, 0 glc ; encoding: [0x00,0x40,0xef,0xe9,0x00,0x04,0x00,0x80]
46 tbuffer_store_format_xyzw v[4:7], off, s[0:3], format:61, 0 glc
47 // GFX10: tbuffer_store_format_xyzw v[8:11], off, s[0:3], format:78, 0 slc ; encoding: [0x00,0x00,0x77,0xea,0x00,0x08,0x40,0x80]
48 tbuffer_store_format_xyzw v[8:11], off, s[0:3], format:78, 0 slc
49 // GFX10: tbuffer_store_format_xyzw v[8:11], off, s[0:3], format:78, 0 ; encoding: [0x00,0x00,0x77,0xea,0x00,0x08,0x00,0x80]
50 tbuffer_store_format_xyzw v[8:11], off, s[0:3], format:78, 0
51 // GFX10: tbuffer_store_format_xyzw v[0:3], off, s[0:3], format:117, 0 offset:42 ; encoding: [0x2a,0x00,0xaf,0xeb,0x00,0x00,0x00,0x80]
52 tbuffer_store_format_xyzw v[0:3], off, s[0:3], format:117, 0 offset:42
53 // GFX10: tbuffer_store_format_xyzw v[0:3], off, s[0:3], format:117, s4 offset:42 ; encoding: [0x2a,0x00,0xaf,0xeb,0x00,0x00,0x00,0x04]
54 tbuffer_store_format_xyzw v[0:3], off, s[0:3], format:117, s4 offset:42
55 // GFX10: tbuffer_store_format_xyzw v[0:3], v4, s[0:3], format:47, 0 idxen ; encoding: [0x00,0x20,0x7f,0xe9,0x04,0x00,0x00,0x80]
56 tbuffer_store_format_xyzw v[0:3], v4, s[0:3], format:47, 0 idxen
57 // GFX10: tbuffer_store_format_xyzw v[0:3], v4, s[0:3], format:115, 0 offen ; encoding: [0x00,0x10,0x9f,0xeb,0x04,0x00,0x00,0x80]
58 tbuffer_store_format_xyzw v[0:3], v4, s[0:3], format:115, 0 offen
59 // GFX10: tbuffer_store_format_xyzw v[0:3], v[4:5], s[0:3], format:70, 0 idxen offen ; encoding: [0x00,0x30,0x37,0xea,0x04,0x00,0x00,0x80]
60 tbuffer_store_format_xyzw v[0:3], v[4:5], s[0:3], format:70, 0 idxen offen
61 // GFX10: tbuffer_store_format_xyzw v[0:3], v4, s[0:3], format:63, 0 idxen ; encoding: [0x00,0x20,0xff,0xe9,0x04,0x00,0x00,0x80]
62 tbuffer_store_format_xyzw v[0:3], v4, s[0:3], format:63, 0 idxen
63 // GFX10: tbuffer_store_format_xyzw v[0:3], v6, s[0:3], format:46, 0 idxen ; encoding: [0x00,0x20,0x77,0xe9,0x06,0x00,0x00,0x80]
64 tbuffer_store_format_xyzw v[0:3], v6, s[0:3], format:46, 0 idxen
65 // GFX10: tbuffer_store_format_x v0, v1, s[0:3], format:125, 0 idxen ; encoding: [0x00,0x20,0xec,0xeb,0x01,0x00,0x00,0x80]
66 tbuffer_store_format_x v0, v1, s[0:3], format:125, 0 idxen
67 // GFX10: tbuffer_store_format_xy v[0:1], v2, s[0:3], format:33, 0 idxen ; encoding: [0x00,0x20,0x0d,0xe9,0x02,0x00,0x00,0x80]
68 tbuffer_store_format_xy v[0:1], v2, s[0:3], format:33, 0 idxen