Commit Graph

2935 Commits

Author SHA1 Message Date
Kenny Goodin
46b6a3fb7f Add more missing math functions
Add missing functions for atan2, cosh, sinh, and tan.
Also add f32 calls and tests for cbrt and hypot.
2019-06-13 22:28:22 -04:00
Ralf Jung
965160d4d7
Merge pull request #769 from RalfJung/rustup
Rustup
2019-06-13 09:50:54 +02:00
Ralf Jung
ad0c941547 rustup for lifetime refactorings 2019-06-13 09:18:03 +02:00
Ralf Jung
118274f300 README: mention to cargo update, mention rustup-toolchain-install-master 2019-06-13 08:43:35 +02:00
Ralf Jung
b597eabbc4
Merge pull request #763 from kennethbgoodin/fix_cmath_functions
[WIP] Implement cbrt and hypot function calls
2019-06-12 22:56:53 +02:00
Kenny Goodin
535914e3dc Implement cbrt and hypot function calls
Test cases are added to `tests/run-pass/intrinsics-math.rs`
2019-06-12 15:44:30 -04:00
Ralf Jung
6ceb716227
Merge pull request #701 from RalfJung/rand
test rand a bit more
2019-06-12 19:16:08 +02:00
Ralf Jung
f72f53c3ad bump rand so that the test passes 2019-06-12 18:30:05 +02:00
Ralf Jung
8f670e6b8b test rand a bit more 2019-06-12 18:19:50 +02:00
Ralf Jung
deb0ff46eb
Merge pull request #764 from RalfJung/minmax
implement min and max floating point intrinsics
2019-06-11 20:06:00 +02:00
Ralf Jung
6a0d092eaf bump Rust version 2019-06-11 19:42:01 +02:00
Ralf Jung
e2f114a5e0 test FMA a bit more 2019-06-11 19:41:43 +02:00
Ralf Jung
9c9a947bf4 test more enum-int-cast code paths 2019-06-11 19:41:43 +02:00
Ralf Jung
a37953752d use apfloat's FMA primitive 2019-06-11 19:41:43 +02:00
Ralf Jung
5e07ac335f implement min and max floating point intrinsics 2019-06-11 19:41:43 +02:00
Ralf Jung
6eab94a459 fix from to/from f32/f64 changes 2019-06-11 19:41:43 +02:00
Ralf Jung
48897d0760
Merge pull request #766 from RalfJung/sysroot
Sysroot consistency check
2019-06-11 10:23:39 +02:00
Ralf Jung
81debbd652
Merge branch 'master' into sysroot 2019-06-11 09:48:05 +02:00
Ralf Jung
f090362b76
Merge pull request #767 from RalfJung/rustup
fix for rustc rename mir -> body
2019-06-10 17:52:55 +02:00
Ralf Jung
446478cce2 fix for rustc rename mir -> body 2019-06-10 13:01:55 +02:00
Ralf Jung
0a9f9e0a0b factor out common code to determine miri binary 2019-06-09 19:47:09 +02:00
Ralf Jung
3b7ae049ee make sure that find_sysroot always sets MIRI_SYSROOT 2019-06-09 19:41:58 +02:00
Ralf Jung
5b91ecc066 fix comments 2019-06-09 17:12:41 +02:00
Ralf Jung
b0b082d4d8 do not handle MIRI_SYSROOT in the driver at all, rely fully on the --sysroot flag 2019-06-09 17:10:04 +02:00
Ralf Jung
244011a47f don't have both MIRI_SYSROOT and --sysroot 2019-06-09 15:43:22 +02:00
Ralf Jung
619f296463 explain why we always set a sysroot; make sure we error if both MIRI_SYSROOT and --sysroot are set 2019-06-09 14:31:05 +02:00
Ralf Jung
05b7e61977 remove outdated sysroot management 2019-06-09 14:10:42 +02:00
Ralf Jung
09f30cabf0 cargo miri: make sure we see the same sysroot for rustc and miri 2019-06-09 13:53:04 +02:00
Ralf Jung
2448e9d9db
Merge pull request #765 from RalfJung/rustup
rustup for EvalResult rename
2019-06-08 23:00:46 +02:00
Ralf Jung
d6bcfc58e3 rustup for EvalResult rename 2019-06-08 22:14:47 +02:00
Oliver Scherer
6ab014723a
Merge pull request #761 from ecstatic-morse/type-name
Add a test for the new `type_name` intrinsic.
2019-06-06 09:23:42 +02:00
Dylan MacKenzie
1ceb81b345 Use in-core implementation of type_name.
We bump `rust-version` to pick up the new impl from
https://github.com/rust-lang/rust/pull/61498 and add a test.
2019-06-05 22:36:53 -07:00
Ralf Jung
f1730d136a
Merge pull request #757 from RalfJung/test-ice
test for no-validation-only failure
2019-06-04 13:45:13 +02:00
Ralf Jung
c06134c4af bump Rust 2019-06-04 13:22:27 +02:00
Ralf Jung
27a66a1e42 test for no-validation-only failure 2019-06-04 13:21:04 +02:00
Ralf Jung
09daf11349
remove too expensive debug assertion (#755)
remove too expensive debug assertion
2019-06-03 12:14:52 +02:00
Ralf Jung
03b74c12c8
Merge branch 'master' into debug 2019-06-03 11:02:17 +02:00
Ralf Jung
0c4d68835b
Merge pull request #760 from lzutao/bump-dep
Bump cargo_metadata and directories dependencies
2019-06-03 09:09:20 +02:00
Lzu Tao
724a9276b1 Bump directories to 2.0 2019-06-03 09:55:02 +07:00
Lzu Tao
e4317e9e08 Bump cargo_metadata to 0.8 2019-06-03 09:52:19 +07:00
Ralf Jung
e1a0f66373
Tag static/const allocations (#748)
Tag static/const allocations
2019-06-02 23:00:45 +02:00
Ralf Jung
b231a7ec9e bump Rust version 2019-06-02 22:16:18 +02:00
Ralf Jung
9f48b3029c test that we cannot access unescaped static memory with a raw ptr 2019-06-02 22:16:02 +02:00
Ralf Jung
e03255d625 fix existing tests
fix thread-local example to no longer write to pointers derived from a shared ref;
fix compile-fail test
2019-06-02 22:16:02 +02:00
Ralf Jung
0c704151f7 use new rustc infrastructure to tag the base pointer of static allocations 2019-06-02 22:16:02 +02:00
Ralf Jung
0acfd32045
Merge pull request #759 from RalfJung/rustup
rustup for ... deprecation
2019-06-01 10:25:37 +02:00
Ralf Jung
dafd2e7202 rustup for ... deprecation 2019-06-01 10:04:49 +02:00
Ralf Jung
96444c11ee remove too expensive debug assertion 2019-05-31 16:34:22 +02:00
Ralf Jung
ec629cc0d5
Rustup (#752)
Rustup
2019-05-30 12:39:01 +02:00
Ralf Jung
c748323eb3 move fn_item/ptr tests to closures file 2019-05-30 11:01:22 +02:00