Jonas Maebe
52fec8a94a
* when optimising subsetreg moves for aarch64, take into account the fact
...
that the subsetreg itself can be 32 or 64 bit (mantis #33607 )
git-svn-id: trunk@40512 -
2018-12-09 14:46:52 +00:00
Jonas Maebe
8846041b23
* use volatile() to prevent wrong optimizations by llvm
...
git-svn-id: trunk@40466 -
2018-12-04 19:53:23 +00:00
pierre
044fae62ea
Fix bug report 34605 and add corresponding test
...
git-svn-id: trunk@40377 -
2018-11-27 10:19:36 +00:00
Jonas Maebe
d1361ca6ed
* fixed adjustments of lower/upper bounds in range test optimization in case
...
of strictly smaller/greater comparisons (mantis #34385 )
git-svn-id: trunk@40344 -
2018-11-17 22:38:31 +00:00
pierre
122fd55564
+ Add TEST_PARALLEL, adds -L option to DOTESTOPT
...
git-svn-id: trunk@40308 -
2018-11-13 15:12:22 +00:00
svenbarth
251dfb6776
* don't allow constants of the record type that is currently being parsed; this would fail as soon as another field is added after the constant declaration
...
+ added tests
Note: unlike what bug report 27880 suggests Delphi also does *NOT* allow this (at least a current Delphi Tokyo) and fails with a "type is not completely defined" error, so this test belongs into the "failure" category
git-svn-id: trunk@40285 -
2018-11-11 22:08:29 +00:00
florian
c45806c84f
* made test more verbose
...
git-svn-id: trunk@40283 -
2018-11-11 17:32:21 +00:00
florian
95acf20544
* address output updated
...
git-svn-id: trunk@40273 -
2018-11-07 22:03:03 +00:00
yury
4682ac269d
* Further improvement for r40180:
...
An uninitialized function Result of a managed type needs special handling.
When passing it as a var parameter a warning need to be emitted, since a user
may expect Result to be empty (nil) by default as it happens with local vars
of a managed type. But this is not true for Result and may lead to serious issues.
The only exception is SetLength(Result, ?) for a string Result. A user always
expects undefined contents of the string after calling SetLength(). In such
case a hint need to be emitted.
+ Tests for this.
git-svn-id: trunk@40216 -
2018-11-04 15:37:52 +00:00
florian
34d11046e0
* wrapcomplexinlinepara takes care of function results which need different temp. handling, resolves #34438
...
* tw34438 failed with -O3, fixes also dfa for inline functions returning results as "complex" parameter
git-svn-id: trunk@40202 -
2018-11-03 17:31:10 +00:00
florian
47c9bca7f2
* number of cycles slightly increased for better measurements
...
git-svn-id: trunk@40161 -
2018-11-01 20:49:19 +00:00
pierre
89ee644919
Replace aint (which is a compiler specific type) by ptruint type, which is defined in system unit
...
git-svn-id: trunk@40102 -
2018-10-31 09:07:57 +00:00
florian
cd209cea53
* fix test for windows
...
git-svn-id: trunk@40091 -
2018-10-29 19:16:14 +00:00
Jonas Maebe
9bd931e931
* make "formal const/var" parameters the least preferred conversion
...
(mantis #32179 )
- removed code to handle conversion to formaldef parameters that are not by
reference (so the default conversion preference is kept)
git-svn-id: trunk@40012 -
2018-10-21 21:02:17 +00:00
Jonas Maebe
2a3eeab96d
* support for constant char/bool/enum indices in typed constant
...
index expressions (mantis #34055 )
* prevent all indirect structure indexing instead of only
ansi/wide/unicodestrings
git-svn-id: trunk@40010 -
2018-10-21 18:48:41 +00:00
Jonas Maebe
2c7c0d1144
* handle widechar constants directly in the scanner, instead of in the
...
overload selection (where you can't even know whether the string is
a valid widechar constant) (mantis #33875 )
git-svn-id: trunk@40009 -
2018-10-21 17:34:00 +00:00
Jonas Maebe
60277dda09
* fix crash when checking load nodes during inlining in case they don't
...
have a symtable set (happens for internally generated labels, like
$raiseaddr) (mantis #34442 )
git-svn-id: trunk@40008 -
2018-10-21 15:53:46 +00:00
pierre
92acd38f40
Fix for bug report #34380
...
git-svn-id: trunk@39986 -
2018-10-18 20:21:54 +00:00
yury
7b7e4e4f66
* Disabled the 'constant propagation' optimization ( -OoNOCONSTPROP ) for this test. Otherwise the compiler throws the overflow error during compilation with -O3 or better.
...
git-svn-id: trunk@39982 -
2018-10-18 17:07:37 +00:00
yury
a9972b4309
* Disabled some tests for android.
...
git-svn-id: trunk@39981 -
2018-10-18 16:42:05 +00:00
yury
bcf03a52d8
* Disabled some tests for android since they turn PIC off.
...
git-svn-id: trunk@39972 -
2018-10-18 13:05:45 +00:00
yury
aa6f6423b2
* tests: On x86_64-android long double is 128-bit. There is no support for 128-bit floats in FPC yet. So disable long double tests for x86_64-android for now.
...
git-svn-id: trunk@39970 -
2018-10-18 12:31:23 +00:00
svenbarth
c0c602f76d
* fix tests as depending on the platform the first parameter in the RTTI data might *not* be $self
...
git-svn-id: trunk@39965 -
2018-10-17 20:53:51 +00:00
yury
7b150102bf
+ Added test object files for x86_64-android.
...
git-svn-id: trunk@39964 -
2018-10-17 19:39:17 +00:00
yury
a29290202f
* Regenerated makefiles to support x86_64-android.
...
git-svn-id: trunk@39958 -
2018-10-17 17:12:20 +00:00
florian
eea088c5f5
* allow nil to be assigned to generic types, resolves #34037
...
* niln is also a constant node
git-svn-id: trunk@39934 -
2018-10-14 07:38:13 +00:00
yury
9ef7a17390
* Delete temp files after test.
...
git-svn-id: trunk@39918 -
2018-10-12 15:08:30 +00:00
yury
9f32b99ea6
* dotest: When executing a remote test, prevent overwrite of the test's result and log by final cleanup commands.
...
git-svn-id: trunk@39911 -
2018-10-11 18:58:19 +00:00
yury
da39d06d80
+ Added test object files for aarch64-android.
...
git-svn-id: trunk@39902 -
2018-10-08 08:29:23 +00:00
svenbarth
2f6b15b1e2
* fix tests now that the RTTI of method pointer variables also contains the hidden parameters
...
git-svn-id: trunk@39901 -
2018-10-08 05:43:44 +00:00
svenbarth
a8b2ad31d1
* fix for Mantis #34355 : correctly check whether the array constructor is empty (aka []) or not
...
git-svn-id: trunk@39882 -
2018-10-07 12:25:24 +00:00
florian
40598944f8
+ support fpc include output in avx test generation code
...
git-svn-id: trunk@39876 -
2018-10-07 10:10:20 +00:00
florian
8943c0584e
+ patch by J. Gareth Moreton to support BMI2 instructions
...
+ extended avx test generator with the newly added BMI2 instructions
git-svn-id: trunk@39875 -
2018-10-07 10:10:19 +00:00
florian
172384fedd
* fix to write correct output file name
...
git-svn-id: trunk@39874 -
2018-10-07 10:10:17 +00:00
florian
5604e98b1c
+ lazarus project files for the avx assembler test generators
...
git-svn-id: trunk@39873 -
2018-10-07 10:10:16 +00:00
yury
ff3d7862d6
* Erase the temp file.
...
git-svn-id: trunk@39868 -
2018-10-06 15:10:24 +00:00
yury
ddb4e37104
* Define slowcpu for android.
...
git-svn-id: trunk@39867 -
2018-10-06 13:58:05 +00:00
yury
46b89f0ef9
* Modified test to not create sub-dirs outside the test's directory.
...
git-svn-id: trunk@39864 -
2018-10-06 10:03:36 +00:00
yury
8c59eb1ce5
* Regenerated makefiles to support aarch64-android.
...
git-svn-id: trunk@39863 -
2018-10-06 09:36:03 +00:00
Tomas Hajny
e147f6fb48
* additional tests added similarly to tfexpand.pp to test modified behaviour discussed in bug #34166
...
git-svn-id: trunk@39848 -
2018-09-30 20:49:24 +00:00
Tomas Hajny
62b57e81cd
* FExpand / ExpandFileName behaviour updated according to discussion in bug #34166
...
git-svn-id: trunk@39840 -
2018-09-28 22:57:57 +00:00
florian
352fb866ef
* is_range_test returns false if "lower" bound is greater than "upper" bound
...
git-svn-id: trunk@39837 -
2018-09-27 20:24:52 +00:00
pierre
d32494c3db
Update all tests Makefile's
...
git-svn-id: trunk@39829 -
2018-09-27 07:09:38 +00:00
florian
a34d4e715c
Merged riscv_new branch
...
git-svn-id: trunk@39813 -
2018-09-26 19:49:08 +00:00
svenbarth
bf91991bae
* fix for Mantis #34332 : allow 2 parameter form of Copy also for ShortString variables
...
+ added test
git-svn-id: trunk@39802 -
2018-09-25 19:10:06 +00:00
svenbarth
9a99ab9dda
* fix for Mantis #34287 : correctly handle "inherited method" calls if "method" is a generic (no matter if it's mode Delphi or not)
...
+ added test
git-svn-id: trunk@39787 -
2018-09-21 15:16:18 +00:00
svenbarth
06267006f3
* explicitely handle the boolean types to determine the bit size as all of them have the bit size 1
...
+ added test
git-svn-id: trunk@39786 -
2018-09-21 13:24:49 +00:00
Jeppe Johansen
74a7963d58
Redo overflow checking code.
...
Fix shift operators in case of unsigned subreg operations. There should be no sign extension here.
Add some unittest implementations that test stack execution and writing to readonly constants.
git-svn-id: branches/laksen/riscv_new@39762 -
2018-09-16 18:37:59 +00:00
pierre
afc25c8838
sparc64-linux objects recompiled with GCC 7.3.0
...
git-svn-id: trunk@39733 -
2018-09-11 08:16:56 +00:00
pierre
382ac9c00a
Add branches for 3.2.0, 3.2.1 and 3.3.1 versions
...
git-svn-id: trunk@39725 -
2018-09-10 13:28:33 +00:00