This PR shows that we get the load/store_lanes logic wrong for arm big-endian.
[official-gcc.git] / gcc / brig / ChangeLog
blob7805b99e1b76b93778c8fc7eb923599a64c5e97d
1 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
2             Alan Hayward  <alan.hayward@arm.com>
3             David Sherwood  <david.sherwood@arm.com>
5         * brigfrontend/brig-to-generic.cc (get_unsigned_int_type): Handle
6         polynomial TYPE_VECTOR_SUBPARTS.
7         * brigfrontend/brig-util.h (gccbrig_type_vector_subparts): Likewise.
9 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
11         Update copyright years.
13 2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>
14             Alan Hayward  <alan.hayward@arm.com>
15             David Sherwood  <david.sherwood@arm.com>
17         * brigfrontend/brig-util.h (gccbrig_type_vector_subparts): New
18         function.
19         * brigfrontend/brig-basic-inst-handler.cc
20         (brig_basic_inst_handler::build_shuffle): Use it instead of
21         TYPE_VECTOR_SUBPARTS.
22         (brig_basic_inst_handler::build_unpack): Likewise.
23         (brig_basic_inst_handler::build_pack): Likewise.
24         (brig_basic_inst_handler::build_unpack_lo_or_hi): Likewise.
25         (brig_basic_inst_handler::operator ()): Likewise.
26         (brig_basic_inst_handler::build_lower_element_broadcast): Likewise.
27         * brigfrontend/brig-code-entry-handler.cc
28         (brig_code_entry_handler::get_tree_cst_for_hsa_operand): Likewise.
29         (brig_code_entry_handler::get_comparison_result_type): Likewise.
30         (brig_code_entry_handler::expand_or_call_builtin): Likewise.
32 2017-12-15  Jakub Jelinek  <jakub@redhat.com>
34         * brig-lang.c (brig_attribute_table): Swap affects_type_identity
35         and handler fields, adjust comments.
37 2017-12-08  Jakub Jelinek  <jakub@redhat.com>
39         * brig-lang.c (brig_attribute_table): Fix up comment.
41 2017-11-28  Jakub Jelinek  <jakub@redhat.com>
43         * brigfrontend/brig-branch-inst-handler.cc
44         (brig_branch_inst_handler::operator): Build SWITCH_EXPR using build2
45         instead of build3.
47 2017-11-17  Henry Linjamäki  <henry.linjamaki@parmance.com>
49         * brigfrontend/brig-util.cc: Fix sprintf format string type mismatch
50         on 32b machines.
52 2017-11-16  Henry Linjamäki  <henry.linjamaki@parmance.com>
54         Change internal representation of HSA registers. Instead
55         representing HSA's untyped registers as unsigned int the gccbrig
56         analyzes brig code and builds the register variables as a type
57         used in tree expressions at most. This gives better chance to
58         optimize CONVERT_VIEW_EXPRs away.
59         * brigfrontend/brig-code-entry-handler.cc: Add analysis method for
60         register type usage. Handle any-typed register variables.
61         * brigfrontend/brig-code-entry-handler.h: New declarations for the
62         above.
63         * brigfrontend/brig-copy-move-inst-handler.cc: Handle any-typed
64         register variables.
65         * brigfrontend/brig-cvt-inst-handler.cc: Likewise.
66         * brigfrontend/brig-function.cc: Build register variables as a
67         type based on results of analysis phase.
68         * brigfrontend/brig-function.h: Move HSA register count defines to
69         brig-utils.h.
70         * brigfrontend/brig-to-generic.cc: New analysis handler. Analyze
71         HSA register usage.
72         * brigfrontend/brig-to-generic.h: New declarations.
73         * brigfrontend/brig-util.cc: New utility functions.
74         * brigfrontend/brig-util.h: New declarations for the above.
76 2017-11-16  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
78         * gccbrig.texi: Added some documentation.
80 2017-10-31  Henry Linjamäki  <henry.linjamaki@parmance.com>
82         * brig-lang.c (brig_langhook_type_for_mode): Fix PR 82771.
84 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
86         * brig-lang.c (brig_langhook_type_for_mode): Use scalar_int_mode
87         and scalar_float_mode.
89 2017-10-09  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
91         * brigfrontend/brig-to-generic.cc: Support BRIG_KIND_NONE
92         directives.  These directives are legal everywhere.  They
93         can be used to patch away BRIG entries at the binary level.
94         Also add extra error detection for zeroed regions: make sure
95         the byteCount field is never zero.
96         * brig/brigfrontend/phsa.h: Added a new error prefix for
97         errors which are due to corrupted BRIG modules.
99 2017-10-09  Henry Linjamäki  <henry.linjamaki@parmance.com>
101         * brigfrontend/brig-branch-inst-handler.cc: The call code
102         still failed a few test cases. Now all PRM cases pass again.
104 2017-10-03  Henry Linjamäki  <henry.linjamaki@parmance.com>
106         * brigfrontend/brig-branch-inst-handler.cc: Fix (more) crash with
107         calls with more than 4 args.  It missed a reference which is required
108         because vector expansion can move the object to another location.
110 2017-09-29  Henry Linjamäki  <henry.linjamaki@parmance.com>
112         * brigfrontend/brig-branch-inst-handler.cc: Fix crash with
113         calls with more than 4 args. Also fix a misexecution issue
114         with kernels that have both unexpanded ID functions and
115         calls to subfunctions.
117 2017-09-28  Henry Linjamäki  <henry.linjamaki@parmance.com>
119         * brig-lang.c: Added function attributes and their handlers.
120         Make BRIGFE 3-level optimize by default.
122 2017-09-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
124         * brig-lang.c: Improved support for function and module scope
125         group segment variables.  PRM specs defines function and module
126         scope group segment variables as an experimental feature. However,
127         PRM test suite uses and hcc relies on them. In addition, hcc
128         assumes certain group variable layout in its dynamic group segment
129         allocation code.  We cannot have global group memory offsets if we
130         want to both have kernel-specific group segment size and multiple
131         kernels calling the same functions that use function scope group memory
132         variables.  Now group segment is handled by separate book keeping of
133         module scope and function (kernel) offsets. Each function has a "frame"
134         in the group segment offset to which is given as an argument.
135         * brigfrontend/brig-branch-inst-handler.cc: See above.
136         * brigfrontend/brig-code-entry-handler.cc: See above.
137         * brigfrontend/brig-fbarrier-handler.cc: See above.
138         * brigfrontend/brig-function-handler.cc: See above.
139         * brigfrontend/brig-function.cc: See above.
140         * brigfrontend/brig-function.h: See above.
141         * brigfrontend/brig-to-generic.cc: See above.
142         * brigfrontend/brig-to-generic.h: See above.
143         * brigfrontend/brig-util.cc: See above.
144         * brigfrontend/brig-util.h: See above.
145         * brigfrontend/brig-variable-handler.cc: See above.
147 2017-09-25  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
149         * brigfrontend/brig-to-generic.cc: Ensure per WI copies of
150         private variables are aligned too.
152 2017-09-17  Thomas Schwinge  <thomas@codesourcery.com>
154         * Make-lang.in (GO_TEXI_FILES): Rename to...
155         (BRIG_TEXI_FILES): ... this.
156         (doc/gccbrig.info, doc/gccbrig.dvi, doc/gccbrig.pdf, brig.info)
157         (brig.srcinfo, brig.man, brig.srcman, brig.install-man)
158         ($(DESTDIR)$(man1dir)/$(GCCBRIG_INSTALL_NAME)$(man1ext)):
159         Uncomment/enable targets.
160         (gccbrig.pod): New target.
161         * gccbrig.texi: New file.
163 2017-08-04  Henry Linjamäki  <henry.linjamaki@parmance.com>
165         Fix PR 81713
166         * brigfrontend/brig-basic-inst-handler.cc: replace build_int_cst with
167         bitsize_int in building BIT_FIELD_REF.
168         * brigfrontend/brig-code-entry-handler.cc: likewise.
170 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
171             Alan Hayward  <alan.hayward@arm.com>
172             David Sherwood  <david.sherwood@arm.com>
174         * brig-c.h (brig_type_for_mode): Remove "enum" before "machine_mode".
175         * brig-lang.c (brig_langhook_type_for_mode): Likewise.
177 2017-07-04  Jakub Jelinek  <jakub@redhat.com>
179         * brigfrontend/brig-function.cc: Include profile-count.h.
180         * brigfrontend/brig-to-generic.cc: Likewise.
182 2017-05-18  Thomas Schwinge  <thomas@codesourcery.com>
184         * brigfrontend/brig-to-generic.h (class brig_to_generic): Use
185         "dump_flags_t" for "m_dump_flags" member.
187 2017-05-13  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
189         * brigfrontend/brig-code-entry-handler.cc
190         (brig_code_entry_handler::build_address_operand): Fix
191         an assertion when doing an 'lda' of a private array
192         offset.
194 2017-05-03  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
196         * brigfrontend/brig-code-entry-handler.cc
197         (brig_code_entry_handler::build_address_operand): Fix a bug
198         with reg+offset addressing on 32b segments. In large mode,
199         the offset is treated as 32bits unless it's global, readonly or
200         kernarg address space.
202 2016-02-01  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
204         * brigfrontend/brig-code-entry-handler.cc: fix address
205         expressions which refer only to offset 0, but nothing else.
206         * brigfrontend/brig-lane-inst-handler.cc: fix
207         activelanepermute_b64 HSAIL instruction.
208         * brigfrontend/brig-to-generic.cc: remove useless c_str()
209         call. Add missing va_end (). Fix PR79250.
211 2017-01-30  Jakub Jelinek  <jakub@redhat.com>
213         * brigfrontend/brig-code-entry-handler.cc
214         (brig_code_entry_handler::get_tree_cst_for_hsa_operand): For %lu
215         cast size_t arguments to unsigned long.
217 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
219         * config-lang.in: Removed stale target-libbrig reference.
221 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
223         Update copyright years.
225 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
226             Martin Jambor  <mjambor@suse.cz>
228         * Make-lang.in: New file.
229         * brig-builtins.h: Likewise.
230         * brig-c.h: Likewise.
231         * brig-lang.c: Likewise.
232         * brigspec.c: Likewise.
233         * config-lang.in: Likewise.
234         * lang-specs.h: Likewise.
235         * lang.opt: Likewise.
236         * brigfrontend/brig-arg-block-handler.cc: Likewise.
237         * brigfrontend/brig-atomic-inst-handler.cc: Likewise.
238         * brigfrontend/brig-basic-inst-handler.cc: Likewise.
239         * brigfrontend/brig-branch-inst-handler.cc: Likewise.
240         * brigfrontend/brig-cmp-inst-handler.cc: Likewise.
241         * brigfrontend/brig-code-entry-handler.cc: Likewise.
242         * brigfrontend/brig-code-entry-handler.h: Likewise.
243         * brigfrontend/brig-comment-handler.cc: Likewise.
244         * brigfrontend/brig-control-handler.cc: Likewise.
245         * brigfrontend/brig-copy-move-inst-handler.cc: Likewise.
246         * brigfrontend/brig-cvt-inst-handler.cc: Likewise.
247         * brigfrontend/brig-fbarrier-handler.cc: Likewise.
248         * brigfrontend/brig-function-handler.cc: Likewise.
249         * brigfrontend/brig-function.cc: Likewise.
250         * brigfrontend/brig-function.h: Likewise.
251         * brigfrontend/brig-inst-mod-handler.cc: Likewise.
252         * brigfrontend/brig-label-handler.cc: Likewise.
253         * brigfrontend/brig-lane-inst-handler.cc: Likewise.
254         * brigfrontend/brig-machine.c: Likewise.
255         * brigfrontend/brig-machine.h: Likewise.
256         * brigfrontend/brig-mem-inst-handler.cc: Likewise.
257         * brigfrontend/brig-module-handler.cc: Likewise.
258         * brigfrontend/brig-queue-inst-handler.cc: Likewise.
259         * brigfrontend/brig-seg-inst-handler.cc: Likewise.
260         * brigfrontend/brig-signal-inst-handler.cc: Likewise.
261         * brigfrontend/brig-to-generic.cc: Likewise.
262         * brigfrontend/brig-to-generic.h: Likewise.
263         * brigfrontend/brig-util.cc: Likewise.
264         * brigfrontend/brig-util.h: Likewise.
265         * brigfrontend/brig-variable-handler.cc: Likewise.
266         * brigfrontend/phsa.h: Likewise.