Commit Graph

649 Commits (961622faad6fc6679e06d4363b95c0cab1ec9d82)

Author SHA1 Message Date
Gabriel Scherer fcb1eb35d2 Translation of french comments in testsuite
(user 'octachron')

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16481 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-09 20:41:49 +00:00
Damien Doligez 3397e7ff16 GPR#243: Faster test suite
(Xavier Leroy)


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16466 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-09 15:45:37 +00:00
Jérémie Dimino 4098845132 Don't allow "noalloc" together with [@@noalloc]
To avoid confusion about how the "noalloc" is to be interpreted if
both are present.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16461 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-06 10:58:28 +00:00
Jérémie Dimino bd21592814 Deprecated warning for "float" and "noalloc"
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16460 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-06 10:58:27 +00:00
Jérémie Dimino 380e66d6db Add tests for [@@unboxed] and [@@noalloc]
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16458 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-06 10:58:26 +00:00
Jérémie Dimino 62b89a3a5c Replace uses of "noalloc" by [@@noalloc]
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16455 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-06 10:58:22 +00:00
Alain Frisch 12f6a53937 GPR#250: Check for negative start element in Array.sub.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16450 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-10-05 09:02:05 +00:00
Pierre Weis dfcc115f12 Consistently quoting quote and doublequote into string and character litterals.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16436 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-21 17:42:11 +00:00
Pierre Weis 571b7e49e6 Consistently quoting quote and doublequote into string and character litterals.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16435 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-21 17:40:50 +00:00
Jacques Garrigue 66dc0fc0fc Add test case from PR#6992
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16428 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-18 13:51:41 +00:00
Jacques Garrigue f5bf4bdce1 Fix PR#6993: allow recursive types when doing unification on GADT indices
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16426 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-18 09:55:18 +00:00
Damien Doligez b860d63145 whitespace cleanup, cut long lines, add some missing headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16415 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-11 11:58:31 +00:00
Jacques Garrigue ceb8ceca82 Fix PR#6985
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16413 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-10 02:34:04 +00:00
Jacques Garrigue a0f6145be5 Fix PR#6944
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16412 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-09 09:17:02 +00:00
Jacques Garrigue 8873757fb1 partial fix of PR#5780
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16411 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-09 08:51:02 +00:00
Jacques Garrigue 65435149d2 Fix PR#6982
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16410 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-09 06:37:16 +00:00
Jérémie Dimino eeced22d26 Use [intnat] instead of [long] in tests/unboxed-primitive-args
Because sizeof(long)=4 on Win64.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16409 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-08 15:29:33 +00:00
Jérémie Dimino 2db27c031b Avoid generating huge files in tests/unboxed-primitive-args
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16408 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-09-08 15:29:31 +00:00
Jérémie Dimino 0850ec49ce Fix compilation of the unboxed-primitive-args test on arm32
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16396 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-26 09:12:33 +00:00
Jérémie Dimino 79978e5a39 Add a test for int64 unboxing
Especially, test that unboxing of int64 works correctly on 32 bit
platforms.

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16389 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-25 16:18:52 +00:00
Jérémie Dimino 4032ba1540 Add typing tests for [@unboxed] and [@untagged]
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16388 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-25 16:18:52 +00:00
Jérémie Dimino 5a19e95868 Add tests for [@unboxed] and [@untagged]
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16387 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-25 16:18:51 +00:00
Jérémie Dimino 7a3517bcbe Allow tests to be native code only
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16386 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-25 16:18:50 +00:00
Damien Doligez ba6bcdf8a8 tests/lib-dynlink-{bytecode,native} : fix slightly wrong command line options
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16381 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-25 15:07:12 +00:00
Xavier Leroy 84ebf792e6 Update wrt trunk, revision 16361.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16362 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-20 16:53:53 +00:00
Gabriel Scherer 6437506bfe Regression test for PR#3612
(Pierre Chambart)

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16359 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-16 21:23:51 +00:00
Gabriel Scherer 5ede9b7ebf minor testsuite fix
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16355 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-16 20:56:10 +00:00
Xavier Leroy cf87a2c664 Update wrt trunk r16319.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16320 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-03 09:18:04 +00:00
Gabriel Scherer 370677b639 PR#6649, GPR#222: accept (int_of_string "+3")
(Christopher McAlpine)

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16308 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-08-02 13:32:44 +00:00
Xavier Leroy d232e7d4ff PPC64 little-endian support.
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16298 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-30 09:07:09 +00:00
Xavier Leroy c157926a36 float_of_big_int: for negative arguments, the top 55 bits must round towards -inf, otherwise wrong rounding occurs. Hence, use shift_right_big_int and not shift_right_towards_zero_big_int.
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16284 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-28 07:49:50 +00:00
Damien Doligez debaf6edb2 fix regression test for PR#6938 for 32-bit machines
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16283 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-27 18:44:10 +00:00
Xavier Leroy 53231bcdc3 Update to trunk r16267.
A change on trunk in cmmgen was causing problems: the use of array_indexing
in bigarray_indexing was constructing derived pointers of Addr type
instead of the correct Int type.  (Because bigarray inner pointers
are outside the heap, and because they are live across allocations.)
Added an optional argument to array_indexing to specify expected
pointer type, and adapted bigarray_indexing to use it with type Int.


git-svn-id: http://caml.inria.fr/svn/ocaml/branches/cmm-mach-types@16268 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-27 08:18:53 +00:00
Gabriel Scherer 235ee2ddef GPR#26: support for "(type a b ..)" as sugar for "(type a) (type b) .."
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16258 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-26 19:01:42 +00:00
Gabriel Scherer 907305ce20 PR#6938: fix regression on "%047.27{l,L,n}{d,i,x,X,o,u}"
(Benoît Vaugon, report by Arduino Cascella)

git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16250 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-25 20:44:02 +00:00
Xavier Leroy 8fc4849b83 big_int.ml: clarify comments.
test_ratios.ml: on x86-32 with x87 extended precision, the computation of the expected result is sometimes wrong because of double rounding in FP division.  Reduce the number of test rounds so that we don't run into this problem.  Note that the float_of_ratio function being tested produces the correct results on x86-x87, because it is immune to double rounding (exact -> extended precision -> double precision).


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16249 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-25 15:25:01 +00:00
Xavier Leroy af4e6bff91 PR#6896: serious reimplementation of Big_int.float_of_big_int and
Ratio.float_of_ratio, ensuring that the result is correctly rounded.

The previous implementations were embarassingly imprecise and slow.


git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16247 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-24 17:44:12 +00:00
Xavier Leroy bf778d1d5d PPC64: add support for large TOC (32-bit offsets instead of 16-bit)
PPC: add some CFI directives and a bit of debug info.
testsuite/tests/asmcomp/power.S: update for PPC64le.


git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16227 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-21 08:28:26 +00:00
Xavier Leroy 8815d7e1a2 PowerPC port of ocamlopt:
- Removed MacOS X support, long dead.
- Added support for PowerPC 64 bits, big-endian, ELF v1 ABI
  (tested, mostly works, some issues remain with marshaling of code pointers)
- Added support for PowerPC 64 bits, little-endian, ELF v2 ABI
  (completely untested)


git-svn-id: http://caml.inria.fr/svn/ocaml/branches/ppc64@16226 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-20 15:41:44 +00:00
Damien Doligez 60c854b66d tests/float-unboxing: fix test for Windows
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16220 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-20 12:53:17 +00:00
Alain Frisch 748ec06e6e GPR#109: new unboxing strategy (patch by vbrankov).
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16215 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 15:47:59 +00:00
Damien Doligez 860c670848 merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev 16205)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-17 14:31:05 +00:00
Damien Doligez ca2db8a939 fix problems with FORTRAN tests
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16210 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:52:12 +00:00
Damien Doligez 222562d376 typo in FORTRAN test
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16209 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:51:42 +00:00
Damien Doligez 002122b2da remove spurious verbosity in test makefile
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16208 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:51:08 +00:00
Damien Doligez 999d9ca008 remove spurious verbosity in test makefile
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16207 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:50:36 +00:00
Damien Doligez ea671f7f0b fix problems with FORTRAN tests
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16206 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-15 14:50:04 +00:00
Jérémie Dimino 9ad65262de add test for PR#6865
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16200 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-07-13 11:22:13 +00:00
Jacques Garrigue c2984fe481 add tests related to PR#6899
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16190 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-29 07:33:28 +00:00
Leo White 5c55e4cc08 Attach documentation comments to Parsetree
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16189 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2015-06-28 13:11:50 +00:00