annotate test/MC/AMDGPU/flat-gfx9.s @ 122:36195a0db682

merging ( incomplete )
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 17 Nov 2017 20:32:31 +0900
parents 803732b1fca8
children 3a76565eade5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefix=GFX9 -check-prefix=GCN %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding %s | FileCheck -check-prefix=VI -check-prefix=GCN %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding 2>&1 %s | FileCheck -check-prefix=GFX9-ERR -check-prefix=GCNERR %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 // RUN: not llvm-mc -arch=amdgcn -mcpu=tonga -show-encoding 2>&1 %s | FileCheck -check-prefix=VI-ERR -check-prefix=GCNERR %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 flat_load_dword v1, v[3:4] offset:0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 // GCN: flat_load_dword v1, v[3:4] ; encoding: [0x00,0x00,0x50,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 flat_load_dword v1, v[3:4] offset:-1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 // GCN-ERR: :35: error: failed parsing operand.
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 // FIXME: Error on VI in wrong column
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 flat_load_dword v1, v[3:4] offset:4095
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 // GFX9: flat_load_dword v1, v[3:4] offset:4095 ; encoding: [0xff,0x0f,0x50,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17 // VIERR: :1: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 flat_load_dword v1, v[3:4] offset:4096
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 // GCNERR: :28: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
21
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
22 flat_load_dword v1, v[3:4] offset:4 glc
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23 // GFX9: flat_load_dword v1, v[3:4] offset:4 glc ; encoding: [0x04,0x00,0x51,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 // VIERR: :1: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
26 flat_load_dword v1, v[3:4] offset:4 glc slc
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27 // GFX9: flat_load_dword v1, v[3:4] offset:4 glc slc ; encoding: [0x04,0x00,0x53,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 // VIERR: :1: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
30 flat_atomic_add v[3:4], v5 offset:8 slc
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31 // GFX9: flat_atomic_add v[3:4], v5 offset:8 slc ; encoding: [0x08,0x00,0x0a,0xdd,0x03,0x05,0x00,0x00]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 // VIERR: :1: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
34 flat_atomic_swap v[3:4], v5 offset:16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35 // GFX9: flat_atomic_swap v[3:4], v5 offset:16 ; encoding: [0x10,0x00,0x00,0xdd,0x03,0x05,0x00,0x00]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36 // VIERR: :1: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 flat_store_dword v[3:4], v1 offset:16
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
39 // GFX9: flat_store_dword v[3:4], v1 offset:16 ; encoding: [0x10,0x00,0x70,0xdc,0x03,0x01,0x00,0x00]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
40 // VIERR: :1: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 flat_store_dword v[3:4], v1, off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 // GCNERR: :30: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
44
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45 flat_store_dword v[3:4], v1, s[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 // GCNERR: :30: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
47
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
48 flat_store_dword v[3:4], v1, s0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49 // GCNERR: :30: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
51 flat_load_dword v1, v[3:4], off
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
52 // GCNERR: :29: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
53
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
54 flat_load_dword v1, v[3:4], s[0:1]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
55 // GCNERR: :29: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
56
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
57 flat_load_dword v1, v[3:4], s0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
58 // GCNERR: :29: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
59
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
60 flat_load_dword v1, v[3:4], exec_hi
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
61 // GCNERR: :29: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
62
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
63 flat_store_dword v[3:4], v1, exec_hi
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
64 // GCNERR: :30: error: invalid operand for instruction
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
65
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
66 flat_load_ubyte_d16 v1, v[3:4]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
67 // GFX9: flat_load_ubyte_d16 v1, v[3:4] ; encoding: [0x00,0x00,0x80,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
68 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
69
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
70 flat_load_ubyte_d16_hi v1, v[3:4]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
71 // GFX9: flat_load_ubyte_d16_hi v1, v[3:4] ; encoding: [0x00,0x00,0x84,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
72 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
73
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
74 flat_load_sbyte_d16 v1, v[3:4]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
75 // GFX9: flat_load_sbyte_d16 v1, v[3:4] ; encoding: [0x00,0x00,0x88,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
76 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
77
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
78 flat_load_sbyte_d16_hi v1, v[3:4]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
79 // GFX9: flat_load_sbyte_d16_hi v1, v[3:4] ; encoding: [0x00,0x00,0x8c,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
80 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
81
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
82 flat_load_short_d16 v1, v[3:4]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
83 // GFX9: flat_load_short_d16 v1, v[3:4] ; encoding: [0x00,0x00,0x90,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
84 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
85
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
86 flat_load_short_d16_hi v1, v[3:4]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
87 // GFX9: flat_load_short_d16_hi v1, v[3:4] ; encoding: [0x00,0x00,0x94,0xdc,0x03,0x00,0x00,0x01]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
88 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
89
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
90 flat_store_byte_d16_hi v[3:4], v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
91 // GFX9: flat_store_byte_d16_hi v[3:4], v1 ; encoding: [0x00,0x00,0x64,0xdc,0x03,0x01,0x00,0x00]
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
92 // VI-ERR: error: instruction not supported on this GPU
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
93
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
94 flat_store_short_d16_hi v[3:4], v1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
95 // GFX9: flat_store_short_d16_hi v[3:4], v1 ; encoding: [0x00,0x00,0x6c,0xdc,0x03,0x01,0x00,0x00
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
96 // VI-ERR: error: instruction not supported on this GPU