Commit Graph

1187 Commits

Author SHA1 Message Date
bjorn3
edbb5730ea Implement copysign{f32,f64} intrinsics 2019-08-19 16:27:09 +02:00
bjorn3
ce860e5fde Fix cross crate static duplicate codegen 2019-08-19 16:26:20 +02:00
bjorn3
2a20cc0b94 Use anonymous lifetimes where possible 2019-08-18 16:52:07 +02:00
bjorn3
1bee110d95 Let codegen_get_discriminant accept CValue instead of CPlace 2019-08-18 16:19:33 +02:00
bjorn3
5b818e5e0f Use native ar to create archive files
Workaround for #672
2019-08-18 16:06:59 +02:00
bjorn3
2add773752 Don't run jit tests on macOS
Workaround for #671
2019-08-18 15:48:31 +02:00
bjorn3
f61b36a396 Don't run a alignment assertion on macOS 2019-08-18 15:30:06 +02:00
bjorn3
7aa4cb874a Misc changes 2019-08-18 14:57:46 +02:00
bjorn3
8e400008ff Disable debug assertions for libstd
This is necessary on macOS, because of alignment problems
2019-08-18 14:49:10 +02:00
bjorn3
43e68319fa Rustup to rustc 1.39.0-nightly (2111aed0a 2019-08-17) 2019-08-18 11:30:13 +02:00
bjorn3
21141eb235 Don't keep alloc_map locked while calling data_id_for_static
Fixes #670
2019-08-17 12:42:57 +02:00
bjorn3
480db7dd9e Implement system abi 2019-08-16 18:16:24 +02:00
bjorn3
2558bf2f6b Workaround for missing #[rustc_args_required_const(..)] support
cc #666
2019-08-16 16:04:50 +02:00
bjorn3
6bf47ad0d4 Include load/store.i128 fix from my cranelift branch 2019-08-15 13:37:38 +02:00
bjorn3
7c7a8e8367 Workaround for missing icmp{,_imm}.i128 legalizations
Fixes #667
2019-08-15 11:36:23 +02:00
bjorn3
9505d60a24 Cast rhs to lhs type for shl and shr 2019-08-14 15:18:05 +02:00
bjorn3
b4e55cdedd Refactor num.rs 2019-08-14 15:03:52 +02:00
bjorn3
db071db95a Calculate sign in trans{,_checked}_int_binop instead of caller 2019-08-14 13:01:55 +02:00
bjorn3
32cb5b8c8e Move discriminant get and set to discriminant.rs 2019-08-14 12:01:41 +02:00
bjorn3
883894a07a Move trans_*_binop to num.rs 2019-08-14 11:52:39 +02:00
bjorn3
581b6ea5be Misc changes 2019-08-14 11:36:24 +02:00
bjorn3
2facd8e7ff Only build dylib
This saves ~200mb of space
2019-08-13 19:46:16 +02:00
bjorn3
11b2b86b08 Fix some rustc tests
* Check for `#[rustc_error]` attribute.
* Use the same weak static type error message as cg_llvm
2019-08-13 19:42:16 +02:00
bjorn3
6f23a053e4 Fix a panic on type size overflow 2019-08-13 19:40:48 +02:00
bjorn3
70fbca287c Fix intrinsic::transmute::<_, <uninhabited>>(...) 2019-08-13 19:39:59 +02:00
bjorn3
f02d135057 Print error for #[rustc_def_path] like expected 2019-08-13 19:39:46 +02:00
bjorn3
9fdef69fe4 Fix uninit intrinsic for zst values 2019-08-13 19:37:51 +02:00
bjorn3
f9c20ce244 Rustup to rustc 1.38.0-nightly (534b42394 2019-08-09) 2019-08-13 12:18:35 +02:00
bjorn3
5459b157ca Update Cargo.lock 2019-08-13 11:52:09 +02:00
bjorn3
36184d286c Remove outdated FIXME and add some new FIXME 2019-08-13 11:46:59 +02:00
bjorn3
f93cd924ec Implement float -> small int cast
Also workaround small signed int eq/ne binop clif bug
2019-08-12 17:25:16 +02:00
bjorn3
f5b0a68fbf Fix some warnings 2019-08-12 16:00:10 +02:00
bjorn3
314141392a Implement log2{f32,f64} intrinsics 2019-08-12 15:54:24 +02:00
bjorn3
7633bb6902
Merge pull request #662 from bjorn3/jit_dylib
Load dependent dylibs in JIT mode
2019-08-11 19:08:01 +02:00
bjorn3
57bc9d8daf Extract jit imported symbols loading functionAlso make the staticlib load error non fatal 2019-08-11 19:04:56 +02:00
bjorn3
bd19af37f4 Remove debugging println 2019-08-11 18:12:49 +02:00
bjorn3
05b7312db2 Misc changes 2019-08-11 17:33:52 +02:00
bjorn3
9041db962d Fix it 2019-08-11 17:06:18 +02:00
bjorn3
1538f7488e Add libstd.so to sysroot 2019-08-10 17:00:09 +02:00
bjorn3
3000a3f63d [WIP] Implement dylib loading for the JIT 2019-08-10 16:50:23 +02:00
bjorn3
bbcffc23ca Update Cargo.lock 2019-08-10 14:33:59 +02:00
bjorn3
3a56dffb9d Improve ci times 2019-08-10 14:22:22 +02:00
bjorn3
1b005eb92d
Merge pull request #660 from bjorn3/libtest
Libtest support
2019-08-09 15:19:06 +02:00
bjorn3
82e31e25c0 Enable regex tests 2019-08-09 14:45:17 +02:00
bjorn3
89c36194db Force single thread mode for libtest 2019-08-09 13:18:09 +02:00
bjorn3
dbac219207 Libtest support 2019-08-09 12:46:24 +02:00
bjorn3
e7a507863c Implement real saturating behaviour for the saturating_* intrinsics with unsigned ints 2019-08-09 12:35:51 +02:00
bjorn3
6414f03644 Don't omit overflow checks for *_with_overflow intrinsics when compiling without debug assertions 2019-08-09 12:35:51 +02:00
bjorn3
19a3bfec3b Fix constant alignment on macOS 2019-08-07 15:26:29 +02:00
bjorn3
bd7c119e4b Rustup to rustc 1.38.0-nightly (6a91782b7 2019-08-06) 2019-08-07 12:35:49 +02:00