Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / ChangeLog.jit
bloba850c6fa72e54fd11ef1102603568cb44aedd422
1 2014-11-05  David Malcolm  <dmalcolm@redhat.com>
3         * jit.dg/test-error-get-type-bad-enum.c: New test case.
4         * jit.dg/test-error-new-binary-op-bad-op.c: Likewise.
5         * jit.dg/test-error-new-function-bad-kind.c: Likewise.
6         * jit.dg/test-error-new-unary-op-bad-op.c: Likewise.
8 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
10         * jit.dg/jit.exp (DEFAULT_CFLAGS): Add -fgnu89-inline since
11         dejagnu.h assumes this.
13 2014-10-17  David Malcolm  <dmalcolm@redhat.com>
15         * jit.dg/jit.exp (get_path_of_driver): New procedure.
16         (jit-dg-test): Don't unsetenv GCC_EXEC_PREFIX, since jit-playback.c
17         now adds -fno-use-linker-plugin to the driver cmdline sidestepping
18         the builddir/installdir libtto_plugin naming issue.
19         When setting up PATH so that the JIT library can invoke the driver
20         by installation name, don't use the installation "bindir".
21         Instead, simply use the location of xgcc as detected
22         get_path_of_driver.  In addition, set up LIBRARY_PATH so that the
23         linker run from inside the JIT library can locate libgcc etc when
24         building the .so, pointing it at the same directory.
26 2014-10-13  David Malcolm  <dmalcolm@redhat.com>
28         * jit.dg/jit.exp (fixed_host_execute): New function, taken from
29         "host_execute" in DejaGnu's dejagnu.exp, with one line removed.
30         (jit-dg-test): Use fixed_host_execute, rathern than host_execute.
32 2014-10-13  David Malcolm  <dmalcolm@redhat.com>
34         * jit.dg/harness.h [MAKE_DEJAGNU_H_THREADSAFE] (note): Redefine
35         "note" from dejagnu.h to new function dejagnu_note so that we can
36         make "note" be threadsafe.
37         (set_options): Don't enable GCC_JIT_BOOL_OPTION_DUMP_SUMMARY,
38         since it can generate large amounts of output that could overwhelm
39         expect's buffer.
40         * jit.dg/test-dot-product.c (verify_code): Use "note" rather than
41         "printf", to give DejaGnu more chances to parse this log data,
42         rather than overflowing its buffer.
43         * jit.dg/test-factorial.c (verify_code): Likewise.
44         * jit.dg/test-fibonacci.c (verify_code): Likewise.
45         * jit.dg/test-fuzzer.c (main): Likewise.
46         * jit.dg/test-nested-loops.c (verify_code): Likewise.
47         * jit.dg/test-sum-of-squares.c (verify_code): Likewise.
48         * jit.dg/test-threads.c (note): New function, adding thread-safety
49         on top of "dejagnu_note", the latter being the implementation
50         found in dejagnu.h.
51         (run_threaded_test): Use "note" rather than "printf".
53 2014-10-07  David Malcolm  <dmalcolm@redhat.com>
55         * jit.dg/jit.exp (jit-dg-test): Prepend the installed bindir to
56         the PATH before invoking built binaries using the library, so that
57         the library can find the driver.  Restore the PATH immediately
58         afterwards.
60 2014-09-24  David Malcolm  <dmalcolm@redhat.com>
62         * ChangeLog.jit: Add copyright footer.
64 2014-09-23  David Malcolm  <dmalcolm@redhat.com>
66         * jit.dg/test-expressions.c (make_tests_of_binary_ops): Add
67         shift operators.
68         (verify_binary_ops): Likewise.
70 2014-09-18  David Malcolm  <dmalcolm@redhat.com>
72         * jit.dg/jit.exp: When constructing "tests", add the example files
73         from the documentation, to ensure that they compile.
75 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
77         * jit.dg/jit.exp: Load target-supports.exp.
79 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
81         * jit.dg/test-nested-loops.c: New test case.
82         * jit.dg/all-non-failing-tests.h: Add test-nested-loops.c.
83         * jit.dg/test-combination.c (create_code): Likewise.
84         (verify_code): Likewise.
85         * jit.dg/test-threads.c (const): Add test-nested-loops.c.
87 2014-08-11  David Malcolm  <dmalcolm@redhat.com>
89         * jit.dg/test-threads.c: New test case, running all of the
90         individual test cases in separate threads.
91         * jit.dg/test-combination.c: Move inclusion of the various
92         individual testcases into...
93         * jit.dg/all-non-failing-tests.h: ...this new file, and rename
94         TEST_COMBINATION to COMBINED_TEST.
95         * jit.dg/harness.h: Respond to new macro MAKE_DEJAGNU_H_THREADSAFE
96         by hacking up <dejagnu.h> to be threadsafe.  Rename
97         TEST_COMBINATION to COMBINED_TEST.
98         * jit.dg/jit.exp (proc jit-dg-test): Add "-lpthread" when building
99         test-threads.exe.
101 2014-08-08  David Malcolm  <dmalcolm@redhat.com>
103         * jit.dg/test-accessing-union.c: New test case.
104         * jit.dg/test-combination.c: Add test-accessing-union.c.
106 2014-08-08  David Malcolm  <dmalcolm@redhat.com>
108         * jit.dg/test-combination.c (create_code): Add missing calls to
109         create_code_quadratic and create_code_reading_struct.
110         (verify_code): Add missing calls to verify_code_quadratic and
111         verify_code_reading_struct.
113 2014-08-08  David Malcolm  <dmalcolm@redhat.com>
115         * jit.dg/test-calling-function-ptr.c: New test case.
116         * jit.dg/test-combination.c: Add test-calling-function-ptr.c.
117         * jit.dg/test-error-call-through-ptr-with-mismatching-args.c: New
118         test case.
119         * jit.dg/test-error-call-through-ptr-with-non-function.c: New test
120         case.
121         * jit.dg/test-error-call-through-ptr-with-non-pointer.c: New test
122         case.
123         * jit.dg/test-error-call-through-ptr-with-not-enough-args.c: New
124         test case.
126 2014-07-25  David Malcolm  <dmalcolm@redhat.com>
128         * jit.dg/test-error-index-not-a-numeric-type.c: New test case.
129         * jit.dg/test-error-value-not-a-numeric-type.c: New test case.
131 2014-03-19  David Malcolm  <dmalcolm@redhat.com>
133         * jit.dg/test-array-as-pointer.c: New test case, verifying that
134         there's a way to treat arrays as pointers.
135         * jit.dg/test-combination.c: Add test-array-as-pointer.c...
136         (create_code): ...here and...
137         (verify_code): ...here.
139         * jit.dg/test-error-array-as-pointer.c: New test case, verifying
140         that bogus casts from array to pointer are caught by the type
141         system, rather than leading to ICEs seen in:
142         https://github.com/davidmalcolm/pygccjit/pull/3#issuecomment-37883129
144 2014-03-18  David Malcolm  <dmalcolm@redhat.com>
146         * jit.dg/test-combination.c: Add test-arrays.c and test-volatile.c.
147         Add comment about test-error-*.c.  Remove comment about
148         test-failure.c, which was removed in
149         96b218c9a1d5f39fb649e02c0e77586b180e8516.
150         (create_code): Call into test-arrays.c and test-volatile.c.
151         (verify_code): Likewise.
153 2014-03-14  David Malcolm  <dmalcolm@redhat.com>
155         * jit.dg/test-expressions.c (called_pointer_checking_function): New.
156         (make_tests_of_casts): Add test of casting from array to pointer.
157         (verify_casts): Likewise.
159 2014-03-13  David Malcolm  <dmalcolm@redhat.com>
161         * jit.dg/test-error-bad-cast.c: New test case.
163 2014-03-11  David Malcolm  <dmalcolm@redhat.com>
165         * jit.dg/harness.h (set_options): Increase optimization level from
166         0 to 3.
168 2014-03-07  David Malcolm  <dmalcolm@redhat.com>
170         * jit.dg/test-functions.c (create_test_of_hidden_function): New,
171         adding test coverage for GCC_JIT_FUNCTION_ALWAYS_INLINE and
172         GCC_JIT_FUNCTION_INTERNAL.
173         (create_tests_of_hidden_functions): Likewise.
174         (verify_hidden_functions): Likewise.
175         (create_code): Add call to create_tests_of_hidden_functions.
176         (verify_code): Add call to verify_hidden_functions.
177         * jit.dg/test-quadratic.c (make_calc_discriminant): Convert
178         from GCC_JIT_FUNCTION_EXPORTED to GCC_JIT_FUNCTION_INTERNAL.
180 2014-03-07  David Malcolm  <dmalcolm@redhat.com>
182         * jit.dg/test-functions.c: Reorder function definitions, grouping
183         them by subject-matter rather than by create-vs-verify phase.
185 2014-03-06  David Malcolm  <dmalcolm@redhat.com>
187         * jit.dg/test-nested-contexts.c (main): Dump the contexts to
188         files, setting up source locations, and adding test coverage for
189         gcc_jit_context_dump_to_file.
191 2014-03-04  David Malcolm  <dmalcolm@redhat.com>
193         * jit.dg/test-error-mismatching-types-in-call.c: New test case,
194         to ensure that a (struct foo *) vs (struct foo) type error is
195         gracefully handled.
197 2014-03-04  David Malcolm  <dmalcolm@redhat.com>
199         * jit.dg/test-volatile.c: New testcase, to exercise
200         gcc_jit_type_get_volatile, and show a way to work with pre-existing
201         global variables.
203 2014-02-28  David Malcolm  <dmalcolm@redhat.com>
205         * jit.dg/test-expressions.c (make_test_of_cast): New, to test new
206         entrypoint gcc_jit_context_new_cast.
207         (make_tests_of_casts): New.
208         (create_code): Add call to make_tests_of_casts.
209         (verify_code): Add call to verify_casts.
211 2014-02-27  David Malcolm  <dmalcolm@redhat.com>
213         * jit.dg/test-accessing-struct.c (create_code): Port to
214         block-based API.
215         * jit.dg/test-calling-external-function.c (create_code): Likewise.
216         * jit.dg/test-error-accessing-field-in-other-struct.c (create_code):
217         Likewise.
218         * jit.dg/test-error-call-with-mismatching-args.c (create_code):
219         Likewise.
220         * jit.dg/test-error-call-with-not-enough-args.c (create_code):
221         Likewise.
222         * jit.dg/test-error-call-with-too-many-args.c (create_code):
223         Likewise.
224         * jit.dg/test-error-dereference-field-of-non-pointer.c (create_code):
225         Likewise.
226         * jit.dg/test-error-dereference-read: Likewise.
227         * jit.dg/test-error-mismatching-types-in-assignment.c: Likewise.
228         * jit.dg/test-error-return-within-void-function.c: Likewise.
229         * jit.dg/test-expressions.c: Likewise.
230         * jit.dg/test-factorial.c: Likewise.
231         * jit.dg/test-functions.c: Likewise.
232         * jit.dg/test-fuzzer.c: Likewise.
233         * jit.dg/test-hello-world.c (create_code): Likewise.
234         * jit.dg/test-nested-contexts.c: Likewise.
235         * jit.dg/test-operator-overloading.cc: Likewise.
236         * jit.dg/test-quadratic.c: Likewise.
237         * jit.dg/test-quadratic.cc: Likewise.
238         * jit.dg/test-reading-struct.c (create_code): Likewise.
239         * jit.dg/test-string-literal.c (create_code): Likewise.
240         * jit.dg/test-sum-of-squares.c (create_code): Likewise.
241         * jit.dg/test-types.c (create_code): Likewise.
242         * jit.dg/test-using-global.c (create_code): Likewise.
244         * jit.dg/test-arrays.c (create_code): Likewise, eliminating use of
245         loop API.
246         * jit.dg/test-dot-product.c (create_code): Likewise.
247         * jit.dg/test-linked-list.c (create_code): Likewise.
249         * jit.dg/test-error-adding-to-terminated-block.c: New testcase.
250         * jit.dg/test-error-block-in-wrong-function.c: Likewise.
251         * jit.dg/test-error-missing-return.c: Likewise.
252         * jit.dg/test-error-unreachable-block.c: Likewise.
253         * jit.dg/test-error-unterminated-block.c: Likewise.
255         * jit.dg/test-error-label-already-placed.c: Delete obsolete testcase.
256         * jit.dg/test-error-unplaced-label.c: Likewise.
258 2014-02-25  David Malcolm  <dmalcolm@redhat.com>
260         * jit.dg/test-functions.c (create_use_of_void_return): New, to add
261         test coverage for gcc_jit_function_add_void_return.
262         (verify_void_return): Likewise.
263         (create_code): Add call to create_use_of_void_return.
264         (verify_code): Add call to verify_void_return.
266 2014-02-18  David Malcolm  <dmalcolm@redhat.com>
268         * jit.dg/test-accessing-struct.c (create_code): Update for change to
269         return type of gcc_jit_context_new_struct_type.
270         * jit.dg/test-arrays.c (create_code): Likewise.
271         * jit.dg/test-error-accessing-field-in-other-struct.c (create_code):
272         Likewise.
273         * jit.dg/test-error-dereference-field-of-non-pointer.c (create_code):
274         Likewise.
275         * jit.dg/test-fuzzer.c (make_random_type): Likewise.
276         * jit.dg/test-nested-contexts.c (make_types): Likewise.
277         * jit.dg/test-quadratic.c (make_types): Likewise.
278         * jit.dg/test-reading-struct.c (create_code): Likewise.
279         * jit.dg/test-types.c (create_code): Likewise.
281         * jit.dg/test-linked-list.c: New selftest, exercising
282         gcc_jit_context_new_opaque_struct, gcc_jit_type_get_pointer, and
283         gcc_jit_context_null.
284         * jit.dg/test-combination.c: Add test-linked-list.c
286 2014-02-14  David Malcolm  <dmalcolm@redhat.com>
288         * jit.dg/test-operator-overloading.cc (make_test_quadratic): Use
289         the new "zero" and "one" methods of gccjit::type.
290         * jit.dg/test-quadratic.cc (make_test_quadratic): Use the new
291         "add_call" method of gccjit::function.
293 2014-02-13  David Malcolm  <dmalcolm@redhat.com>
295         * jit.dg/harness.h (CHECK_DOUBLE_VALUE): New macro.
296         (CHECK): New macro.
297         * jit.dg/test-functions.c: New testcase, exercising
298         gcc_jit_context_get_builtin_function.
299         * jit.dg/test-combination.c: Add test-functions.c to the combined
300         test.
302 2014-02-11  David Malcolm  <dmalcolm@redhat.com>
304         * jit.dg/test-types.c: Add test coverage for getting type
305         GCC_JIT_TYPE_BOOL.
306         * jit.dg/test-expressions.c (make_test_of_comparison): Convert
307         return type from int to bool.
308         (verify_comparisons): Likewise.
310 2014-02-11  David Malcolm  <dmalcolm@redhat.com>
312         * jit.dg/test-error-unplaced-label.c (verify_code): Update
313         expected error message to reflect commit
314         6cd4f82c5237cc328aea229cdaaa428ff09d6e98.
316 2014-02-10  David Malcolm  <dmalcolm@redhat.com>
318         * jit.dg/test-types.c (struct zoo): Add field m_sized_int_type,
319         to be populated by...
320         (create_code): Use gcc_jit_context_get_int_type.
321         (verify_code): Verify that type from gcc_jit_context_get_int_type
322         works properly.
323         * jit.dg/test-operator-overloading.cc (make_types): Use the
324         template form of get_int_type.
325         * jit.dg/test-quadratic.cc (make_types): Likewise.
327 2014-02-10  David Malcolm  <dmalcolm@redhat.com>
329         * jit.dg/test-operator-overloading.cc: New testcase, a
330         rewrite of test-quadratic.cc to use operator overloading.
332 2014-02-10  David Malcolm  <dmalcolm@redhat.com>
334         * jit.dg/test-quadratic.cc (make_calc_discriminant): Make use of
335         new methods of the C++ wrapper API to shorten the example code.
336         (make_test_quadratic): Likewise.
338 2014-02-10  David Malcolm  <dmalcolm@redhat.com>
340         * jit.dg/test-quadratic.cc (make_test_quadratic): Update for
341         change to gccjit::context::new_call to pass args by reference
342         rather than by value.
344 2014-02-03  David Malcolm  <dmalcolm@redhat.com>
346         * jit.dg/harness.h (check_string_value): Add a forward declaration,
347         so that we can use CHECK_STRING_VALUE from within tests used by
348         test-combination.c.
350         * jit.dg/test-expressions.c (make_test_of_unary_op): Return a debug
351         stringification of the operation so that it be sanity-checked.
352         (make_test_of_binary_op): Likewise.
353         (make_test_of_comparison): Likewise.
354         (make_tests_of_unary_ops): Verify that said stringifications are
355         indeed sane.
356         (make_tests_of_binary_ops): Likewise.
357         (make_tests_of_comparisons): Likewise.
359         * jit.dg/test-quadratic.cc (make_types): Verify that the
360         get_debug_string method works.
361         (make_test_quadratic): Likewise, also, verify that the <<
362         operator works.
364 2014-01-31  David Malcolm  <dmalcolm@redhat.com>
366         * jit.dg/test-quadratic.cc: New file - a translation of
367         test-quadratic.c to the libgccjit++.h C++ API.
369 2014-01-30  David Malcolm  <dmalcolm@redhat.com>
371         * jit.dg/test-error-label-already-placed.c: New test case.
372         * jit.dg/test-error-unplaced-label.c: New test case.
374 2014-01-30  David Malcolm  <dmalcolm@redhat.com>
376         * jit.dg/test-error-call-with-mismatching-args.c: New test case.
378 2014-01-30  David Malcolm  <dmalcolm@redhat.com>
380         * jit.dg/test-error-accessing-field-in-other-struct.c: New test
381         case.
382         * jit.dg/test-error-dereference-field-of-non-pointer.c: Likewise.
383         * jit.dg/test-error-dereference-read-of-non-pointer.c: Likewise.
384         * jit.dg/test-error-mismatching-types-in-assignment.c: Likewise.
385         * jit.dg/test-error-return-within-void-function.c: Likewise.
387 2014-01-29  David Malcolm  <dmalcolm@redhat.com>
389         * jit.dg/test-accessing-struct.c (create_code): Update for API change
390         for accessing fields in terms of gcc_jit_field pointers rather than
391         by name.
392         * jit.dg/test-nested-contexts.c (make_calc_discriminant): Likewise.
393         (make_test_quadratic): Likewise.
394         * jit.dg/test-quadratic.c (make_calc_discriminant): Likewise.
395         (make_test_quadratic): Likewise.
396         * jit.dg/test-reading-struct.c (create_code): Likewise.
397         * jit.dg/test-types.c: Likewise.
399 2014-01-28  David Malcolm  <dmalcolm@redhat.com>
401         * jit.dg/harness.h (test_jit): Add the possibility of turning off
402         this function, if the newly-coined "TEST_ESCHEWS_TEST_JIT" is
403         defined, for use by...
404         * jit.dg/test-nested-contexts.c: New test case, adapting
405         test-quadratic.c, but splitting it into a 3-deep arrangement of
406         nested contexts, to test the implementation of child contexts.
408 2014-01-28  David Malcolm  <dmalcolm@redhat.com>
410         * jit.dg/harness.h (test_jit): Move the various calls to set up
411         options on the context into...
412         (set_options): ...this new function.
414 2014-01-27  David Malcolm  <dmalcolm@redhat.com>
416         * jit.dg/test-error-call-with-not-enough-args.c: New test case.
417         * jit.dg/test-error-call-with-too-many-args.c: New test case.
418         * jit.dg/test-null-passed-to-api.c: Rename to...
419         * jit.dg/test-error-null-passed-to-api.c: ...this, so that
420         error-handling test cases are consistently named.
422 2014-01-24  David Malcolm  <dmalcolm@redhat.com>
424         * jit.dg/test-empty.c: New test case.
426 2014-01-24  David Malcolm  <dmalcolm@redhat.com>
428         * jit.dg/harness.h (code_making_callback): Rename to...
429         (create_code): ...this, and eliminate the returned
430         error-handling value: test cases will simply call into the
431         gcc_jit_ API, without needing to be run from a callback.
432         (test_jit): Don't register a callback, simply call the
433         "create_code" function for the testcase before compiling the
434         context.
436         * jit.dg/test-accessing-struct.c: Rename "code_making_callback"
437         to "create_code" and eliminate the return code.
438         * jit.dg/test-calling-external-function.c: Likewise.
439         * jit.dg/test-combination.c: Likewise.
440         * jit.dg/test-dot-product.c: Likewise.
441         * jit.dg/test-expressions.c: Likewise.
442         * jit.dg/test-factorial.c: Likewise.
443         * jit.dg/test-fibonacci.c: Likewise.
444         * jit.dg/test-fuzzer.c: Likewise.
445         * jit.dg/test-hello-world.c: Likewise.
446         * jit.dg/test-null-passed-to-api.c: Likewise.
447         * jit.dg/test-quadratic.c: Likewise.
448         * jit.dg/test-reading-struct.c: Likewise.
449         * jit.dg/test-string-literal.c: Likewise.
450         * jit.dg/test-sum-of-squares.c: Likewise.
451         * jit.dg/test-types.c: Likewise.
452         * jit.dg/test-using-global.c: Likewise.
454         * jit.dg/test-failure.c: Remove this test case, since it was
455         specifically for testing the now-defunct callback-based API.
457 2014-01-23  David Malcolm  <dmalcolm@redhat.com>
459         * jit.dg/test-quadratic.c: New test case, written to achieve test
460         coverage of gcc_jit_rvalue_access_field, but also exercising
461         division of doubles.
463         * jit.dg/test-combination.c: Add test-quadratic.c
465         * jit.dg/test-expressions.c: Add TODOs.
467 2014-01-23  David Malcolm  <dmalcolm@redhat.com>
469         * jit.dg/test-reading-struct.c: New test, to provide test coverage
470         of gcc_jit_type_get_const and gcc_jit_lvalue_access_field, in the
471         process uncovering bugs in how locals were handled.
472         * jit.dg/test-combination.c: Add usage of test-reading-struct.c.
474 2014-01-21  David Malcolm  <dmalcolm@redhat.com>
476         * jit.dg/test-hello-world.c (code_making_callback): Add usage of
477         gcc_jit_function_add_comment.
479 2013-10-24  David Malcolm  <dmalcolm@redhat.com>
481         * jit.dg/harness.h (main): Wrap with #ifndef TEST_PROVIDES_MAIN
482         * jit.dg/test-fuzzer.c: New.
484 2013-10-22  David Malcolm  <dmalcolm@redhat.com>
486         * jit.dg/harness.h (verify_code): Add context param so that
487         test cases of failure can query errors on it.
488         (CHECK_STRING_VALUE): New.
489         (check_string_value): New.
490         (test_jit): Add user_data param and pass it to the code factory.
491         Pass context to verify_code, calling it before releasing said
492         context.
493         (main): Add NULL user_data to test_jit call.
494         * jit.dg/test-accessing-struct.c (verify_code): Add context
495         param.
496         * jit.dg/test-calling-external-function.c (verify_code):
497         Likewise.
498         * jit.dg/test-combination.c (verify_code): Likewise.
499         * jit.dg/test-dot-product.c (verify_code): Likewise.
500         * jit.dg/test-expressions.c (verify_code): Likewise.
501         * jit.dg/test-factorial.c (verify_code): Likewise.
502         * jit.dg/test-failure.c (verify_code): Likewise.
503         * jit.dg/test-fibonacci.c (verify_code): Likewise.
504         * jit.dg/test-hello-world.c (verify_code): Likewise.
505         * jit.dg/test-string-literal.c (verify_code): Likewise.
506         * jit.dg/test-sum-of-squares.c (verify_code): Likewise.
507         * jit.dg/test-types.c (verify_code): Likewise.
508         * jit.dg/test-using-global.c (verify_code): Likewise.
509         * jit.dg/test-null-passed-to-api.c (verify_code): Likewise;
510         use context to verify that the library provides a sane error
511         message to the client code.
513 2013-10-21  David Malcolm  <dmalcolm@redhat.com>
515         * jit.dg/test-expressions.c (test_global): New.
516         (make_test_of_get_address): New.
517         (verify_get_address): New.
518         (code_making_callback): Add call to make_test_of_get_address.
519         (verify_code): Add call to verify_get_address.
521 2013-10-18  David Malcolm  <dmalcolm@redhat.com>
523         * jit.dg/test-expressions.c: New.
524         * jit.dg/test-combination.c: Add usage of test-expressions.c
525         * jit.dg/test-accessing-struct.c (code_making_callback): Update
526         for changes to field-access API.
527         * jit.dg/test-types.c (code_making_callback): Likewise.
529 2013-10-18  David Malcolm  <dmalcolm@redhat.com>
531         * jit.dg/test-null-passed-to-api.c: New.
533 2013-10-17  David Malcolm  <dmalcolm@redhat.com>
535         * jit.dg/test-accessing-struct.c (code_making_callback): Update
536         for changes to type API.
537         * jit.dg/test-calling-external-function.c (code_making_callback):
538         Likewise.
539         * jit.dg/test-dot-product.c (code_making_callback): Likewise.
540         * jit.dg/test-factorial.c (code_making_callback): Likewise.
541         * jit.dg/test-fibonacci.c (code_making_callback): Likewise.
542         * jit.dg/test-hello-world.c (code_making_callback): Likewise.
543         * jit.dg/test-string-literal.c (code_making_callback): Likewise.
544         * jit.dg/test-sum-of-squares.c (code_making_callback): Likewise.
545         * jit.dg/test-using-globals.c (code_making_callback): Likewise.
546         * jit.dg/test-types.c: New.
547         * jit.dg/test-combination.c (code_making_callback): Use code
548         from test-types.c.
549         (verify_code): ...and verify it.
551 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
553         * jit.dg/test-dot-product.c (code_making_callback): Update for
554         API changes to locals.
555         * jit.dg/test-sum-of-squares.c (code_making_callback): Likewise.
557 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
559         * jit.dg/jit.exp (jit-dg-test): Detect compilation errors and
560         make them be test failures.
562 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
564         * jit.dg/test-factorial.c (code_making_callback): Update
565         for change to gcc_jit_function_place_forward_label.
566         * jit.dg/test-fibonacci.c (code_making_callback): Add line
567         numbering to comment, and set up source locations throughout)
568         allowing stepping throught the comment in the debugger.
569         * jit.dg/test-sum-of-squares.c (code_making_callback): Update
570         for change to gcc_jit_function_place_forward_label.
572 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
574         * jit.dg/harness.h: Set GCC_JIT_BOOL_OPTION_DUMP_SUMMARY when
575         running selftests.
577 2013-10-08  David Malcolm  <dmalcolm@redhat.com>
579         * jit.dg/harness.h: Wrap parts of harness within a
580         #ifndef TEST_COMBINATION so that it can be included multiple
581         times.
582         * jit.dg/test-accessing-struct.c (code_making_callback): Rename
583         the generated function from test_fn to test_access to avoid a
584         naming collision in the combined test.
585         (verify_code): Likewise.
586         * jit.dg/test-calling-external-function.c (code_making_callback):
587         Rename the generated function from test_fn to test_caller.
588         (verify_code): Likewise.
589         * jit.dg/test-combination.c: New.
590         * jit.dg/test-string-literal.c (code_making_callback): Rename
591         the generated function from test_fn to test_string_literal.
592         (verify_code): Likewise.
593         * jit.dg/test-using-global.c (code_making_callback): Rename
594         the generated function from test_fn to test_using_global.
595         (verify_code): Likewise.
597 2013-10-07  David Malcolm  <dmalcolm@redhat.com>
599         * jit.dg/harness.h (test_jit): Set
600         GCC_JIT_BOOL_OPTION_SELFCHECK_GC when running selftests.
602 2013-10-04  David Malcolm  <dmalcolm@redhat.com>
604         * jit.dg/test-using-global.c: New.
606 2013-10-03  David Malcolm  <dmalcolm@redhat.com>
608         * jit.dg: New subdirectory
609         * jit.dg/harness.h: New.
610         * jit.dg/jit.exp: New.
611         * jit.dg/test-accessing-struct.c: New.
612         * jit.dg/test-calling-external-function.c: New.
613         * jit.dg/test-dot-product.c: New.
614         * jit.dg/test-factorial.c: New.
615         * jit.dg/test-failure.c: New.
616         * jit.dg/test-fibonacci.c: New.
617         * jit.dg/test-hello-world.c: New.
618         * jit.dg/test-string-literal.c: New.
619         * jit.dg/test-sum-of-squares.c: New.
622 Copyright (C) 2013-2014 Free Software Foundation, Inc.
624 Copying and distribution of this file, with or without modification,
625 are permitted in any medium without royalty provided the copyright
626 notice and this notice are preserved.