1 // RUN
: not llvm-mc
-triple amdgcn-amd-amdhsa
-mcpu
=gfx90a
%s
2>&1 | FileCheck
--check-prefix
=ASM
%s
3 // Some expression currently require
(immediately
) solvable expressions
, i.e.
,
4 // they don
't depend on yet-unknown symbolic values.
8 .amdhsa_code_object_version 4
11 .type user_sgpr_count,@function
16 .amdhsa_kernel user_sgpr_count
17 .amdhsa_next_free_vgpr 0
18 .amdhsa_next_free_sgpr 0
19 .amdhsa_accum_offset 4
20 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
21 .amdhsa_user_sgpr_count defined_boolean
26 .type user_sgpr_private_segment_buffer,@function
27 user_sgpr_private_segment_buffer:
30 .amdhsa_kernel user_sgpr_private_segment_buffer
31 .amdhsa_next_free_vgpr 0
32 .amdhsa_next_free_sgpr 0
33 .amdhsa_accum_offset 4
34 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
35 .amdhsa_user_sgpr_private_segment_buffer defined_boolean
39 .type user_sgpr_kernarg_preload_length,@function
40 user_sgpr_kernarg_preload_length:
43 .amdhsa_kernel user_sgpr_kernarg_preload_length
44 .amdhsa_next_free_vgpr 0
45 .amdhsa_next_free_sgpr 0
46 .amdhsa_accum_offset 4
47 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
48 .amdhsa_user_sgpr_kernarg_preload_length defined_boolean
52 .type user_sgpr_kernarg_preload_offset,@function
53 user_sgpr_kernarg_preload_offset:
56 .amdhsa_kernel user_sgpr_kernarg_preload_offset
57 .amdhsa_next_free_vgpr 0
58 .amdhsa_next_free_sgpr 0
59 .amdhsa_accum_offset 4
60 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
61 .amdhsa_user_sgpr_kernarg_preload_offset defined_boolean
65 .type user_sgpr_dispatch_ptr,@function
66 user_sgpr_dispatch_ptr:
70 .amdhsa_kernel user_sgpr_dispatch_ptr
71 .amdhsa_next_free_vgpr 0
72 .amdhsa_next_free_sgpr 0
73 .amdhsa_accum_offset 4
74 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
75 .amdhsa_user_sgpr_dispatch_ptr defined_boolean
79 .type user_sgpr_queue_ptr,@function
84 .amdhsa_kernel user_sgpr_queue_ptr
85 .amdhsa_next_free_vgpr 0
86 .amdhsa_next_free_sgpr 0
87 .amdhsa_accum_offset 4
88 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
89 .amdhsa_user_sgpr_queue_ptr defined_boolean
93 .type user_sgpr_kernarg_segment_ptr,@function
94 user_sgpr_kernarg_segment_ptr:
98 .amdhsa_kernel user_sgpr_kernarg_segment_ptr
99 .amdhsa_next_free_vgpr 0
100 .amdhsa_next_free_sgpr 0
101 .amdhsa_accum_offset 4
102 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
103 .amdhsa_user_sgpr_kernarg_segment_ptr defined_boolean
107 .type user_sgpr_dispatch_id,@function
108 user_sgpr_dispatch_id:
112 .amdhsa_kernel user_sgpr_dispatch_id
113 .amdhsa_next_free_vgpr 0
114 .amdhsa_next_free_sgpr 0
115 .amdhsa_accum_offset 4
116 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
117 .amdhsa_user_sgpr_dispatch_id defined_boolean
121 .type user_sgpr_flat_scratch_init,@function
122 user_sgpr_flat_scratch_init:
126 .amdhsa_kernel user_sgpr_flat_scratch_init
127 .amdhsa_next_free_vgpr 0
128 .amdhsa_next_free_sgpr 0
129 .amdhsa_accum_offset 4
130 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
131 .amdhsa_user_sgpr_flat_scratch_init defined_boolean
135 .type user_sgpr_private_segment_size,@function
136 user_sgpr_private_segment_size:
140 .amdhsa_kernel user_sgpr_private_segment_size
141 .amdhsa_next_free_vgpr 0
142 .amdhsa_next_free_sgpr 0
143 .amdhsa_accum_offset 4
144 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
145 .amdhsa_user_sgpr_private_segment_size defined_boolean
149 .type wavefront_size32,@function
154 .amdhsa_kernel wavefront_size32
155 .amdhsa_next_free_vgpr 0
156 .amdhsa_next_free_sgpr 0
157 .amdhsa_accum_offset 4
158 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
159 .amdhsa_wavefront_size32 defined_boolean
163 .type shared_vgpr_count,@function
168 .amdhsa_kernel shared_vgpr_count
169 .amdhsa_next_free_vgpr 0
170 .amdhsa_next_free_sgpr 0
171 .amdhsa_accum_offset 4
172 // ASM: :[[@LINE+1]]:{{[0-9]+}}: error: directive should have resolvable expression
173 .amdhsa_shared_vgpr_count defined_boolean
176 .set defined_boolean, 1