annotate test/MC/AMDGPU/add-sub-no-carry.s @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
1 // RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefixes=GFX9 %s
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=fiji %s 2>&1 | FileCheck -check-prefixes=ERR-SICIVI %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=bonaire %s 2>&1 | FileCheck -check-prefixes=ERR-SICIVI %s
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 // FIXME: pre-gfx9 errors should be more useful
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 v_add_u32 v1, v2, v3
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
9 // GFX9: v_add_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x68]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
10 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 v_add_u32 v1, v2, s1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 // GFX9: v_add_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x34,0xd1,0x02,0x03,0x00,0x00]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
14 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 v_add_u32 v1, s1, v2
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
17 // GFX9: v_add_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x68]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
18 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 v_add_u32 v1, 4.0, v2
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
21 // GFX9: v_add_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x68]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
22 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
23
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
24 v_add_u32 v1, v2, 4.0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
25 // GFX9: v_add_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x34,0xd1,0x02,0xed,0x01,0x00]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
26 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
27
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
28 v_add_u32_e32 v1, v2, v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
29 // GFX9: v_add_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x68]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
30 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
31
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
32 v_add_u32_e32 v1, s1, v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
33 // GFX9: v_add_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x68]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
34 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
35
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
36
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
37
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
38 v_sub_u32 v1, v2, v3
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
39 // GFX9: v_sub_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6a]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
40 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
41
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
42 v_sub_u32 v1, v2, s1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
43 // GFX9: v_sub_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x35,0xd1,0x02,0x03,0x00,0x00]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
44 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
45
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
46 v_sub_u32 v1, s1, v2
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
47 // GFX9: v_sub_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x6a]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
48 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
49
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
50 v_sub_u32 v1, 4.0, v2
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
51 // GFX9: v_sub_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x6a]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
52 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
53
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
54 v_sub_u32 v1, v2, 4.0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
55 // GFX9: v_sub_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x35,0xd1,0x02,0xed,0x01,0x00]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
56 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
57
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
58 v_sub_u32_e32 v1, v2, v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
59 // GFX9: v_sub_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6a]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
60 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
61
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
62 v_sub_u32_e32 v1, s1, v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
63 // GFX9: v_sub_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x6a]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
64 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
65
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
66
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
67
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
68 v_subrev_u32 v1, v2, v3
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
69 // GFX9: v_subrev_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6c]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
70 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
71
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
72 v_subrev_u32 v1, v2, s1
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
73 // GFX9: v_subrev_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x36,0xd1,0x02,0x03,0x00,0x00]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
74 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
75
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
76 v_subrev_u32 v1, s1, v2
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
77 // GFX9: v_subrev_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x6c]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
78 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
79
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
80 v_subrev_u32 v1, 4.0, v2
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
81 // GFX9: v_subrev_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x6c]
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
82 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
83
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
84 v_subrev_u32 v1, v2, 4.0
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
85 // GFX9: v_subrev_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x36,0xd1,0x02,0xed,0x01,0x00]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
86 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
87
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
88 v_subrev_u32_e32 v1, v2, v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
89 // GFX9: v_subrev_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6c]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
90 // ERR-SICIVI: error: instruction not supported on this GPU
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
91
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
92 v_subrev_u32_e32 v1, s1, v3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
93 // GFX9: v_subrev_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x6c]
134
3a76565eade5 update 5.0.1
mir3636
parents: 121
diff changeset
94 // ERR-SICIVI: error: instruction not supported on this GPU