bors
f7f34f270a
Auto merge of #2017 - RalfJung:rustup, r=RalfJung
...
rustup
Cc https://github.com/rust-lang/rust/issues/94871
2022-03-12 15:14:25 +00:00
Ralf Jung
27d5b846ee
rustup
2022-03-12 09:46:10 -05:00
bors
c58298ce22
Auto merge of #2014 - RalfJung:ptr-offset-from, r=RalfJung
...
add ptr_offset_from OOB test, and update test errors
The Miri side of https://github.com/rust-lang/rust/pull/94827 .
2022-03-12 03:12:37 +00:00
Ralf Jung
21ff2f9fca
rustup
2022-03-11 22:07:43 -05:00
Ralf Jung
bae720c75b
add ptr_offset_from OOB test, and update test errors
2022-03-10 18:56:19 -05:00
bors
a35877b5f1
Auto merge of #2013 - RalfJung:simd, r=RalfJung
...
implement simd_{shuffle,gather,scatter}
This makes portable-simd doctests pass. :)
Cc https://github.com/rust-lang/miri/issues/1912
2022-03-10 00:30:07 +00:00
Ralf Jung
41ffce1145
implement simd_scatter
2022-03-09 19:29:05 -05:00
Ralf Jung
576e2bbed5
implement gather
2022-03-09 19:29:05 -05:00
Ralf Jung
3eba7fcf73
implement simd_shuffle
2022-03-09 19:29:05 -05:00
bors
5aeff5d9ef
Auto merge of #2006 - RalfJung:readme-ci, r=RalfJung
...
update recommended CI snippet, add GHA example
If this snippet works as expected in https://github.com/rust-lang/portable-simd/pull/255 (which we can test tomorrow), then this adjusts our README to that nicer script.
2022-03-08 12:54:18 +00:00
bors
722475ccc1
Auto merge of #2009 - RalfJung:rustup, r=RalfJung
...
rustup
2022-03-08 01:08:11 +00:00
Ralf Jung
d54c5fb668
rustup
2022-03-07 20:07:44 -05:00
bors
acb58ffaaf
Auto merge of #2008 - RalfJung:notempty, r=RalfJung
...
fs: add and test for DirectoryNotEmpty error variant
2022-03-07 23:31:10 +00:00
Ralf Jung
6d3506adef
fs: add and test for DirectoryNotEmpty error variant
2022-03-07 18:30:12 -05:00
bors
fc15f96651
Auto merge of #1981 - tavianator:readdir, r=RalfJung
...
Implement a readdir64() shim for Linux
Partial fix for #1966 .
2022-03-07 22:53:54 +00:00
Tavian Barnes
0886419524
Implement a readdir64() shim for Linux
...
Partial fix for #1966 .
2022-03-07 16:19:03 -05:00
Tavian Barnes
0088715411
Rename MiriMemoryKind::Env to Runtime
...
In preparation to use it for other runtime-internal allocations.
2022-03-07 16:19:03 -05:00
bors
ccaf7206e1
Auto merge of #2007 - RalfJung:simd_saturating, r=RalfJung
...
implement simd_saturating intrinsics
2022-03-07 19:13:41 +00:00
Ralf Jung
735bee2736
implement simd_saturating intrinsics
2022-03-07 14:12:59 -05:00
Ralf Jung
c03575275a
update recommended CI snippet, add GHA example
2022-03-07 12:03:51 -05:00
bors
64b086a8e2
Auto merge of #2004 - RalfJung:simd, r=RalfJung
...
implement more SIMD intrinsics
Requires https://github.com/rust-lang/rust/pull/94681
With this, the cast, i32_ops, and f32_ops test suites of portable-simd pass. :)
Cc https://github.com/rust-lang/miri/issues/1912
2022-03-07 14:58:30 +00:00
Ralf Jung
b87a9c90e1
fix handling of NaNs in simd max/min
2022-03-07 09:49:35 -05:00
Ralf Jung
2f97eb68a0
implement simd_fmax/fmin
2022-03-07 09:40:23 -05:00
Ralf Jung
9851b743c1
implement simd_reduce_min/max
2022-03-07 09:40:23 -05:00
Ralf Jung
db06d4998f
implement simd_cast, simd_as
2022-03-07 09:40:23 -05:00
bors
dd42a47f0a
Auto merge of #2005 - RalfJung:rustup, r=RalfJung
...
rustup
2022-03-07 14:40:07 +00:00
Ralf Jung
594a70a289
rustup
2022-03-07 09:39:32 -05:00
bors
a25d905ddf
Auto merge of #2003 - RalfJung:simd-reduce-test, r=RalfJung
...
also test f32/f64 simd_reduce
Forgot to include this in https://github.com/rust-lang/miri/pull/2001
2022-03-06 04:22:12 +00:00
Ralf Jung
21d36ffd04
also test f32/f64 simd_reduce
2022-03-05 23:03:14 -05:00
bors
176f070d4c
Auto merge of #2002 - RalfJung:negative-shifts, r=RalfJung
...
add extra tests for shifts with negative offsets
Cc https://github.com/rust-lang/rust/pull/94659
2022-03-06 04:00:41 +00:00
Ralf Jung
9810a147a7
add extra tests for shifts with negative offsets
2022-03-05 22:59:23 -05:00
bors
54b14b7f01
Auto merge of #2001 - RalfJung:simd, r=RalfJung
...
add more simd_reduce intrinsics
This makes large parts of the portable-simd test suite work. :D
Cc https://github.com/rust-lang/portable-simd/pull/255
2022-03-06 00:25:19 +00:00
Ralf Jung
b491b72673
implement simd_reduce_{add,mul}
2022-03-05 19:02:00 -05:00
Ralf Jung
3ed8ad4423
avoid repeated string matching, and add more simd_reduce intrinsics
2022-03-05 18:46:14 -05:00
bors
3854a76ace
Auto merge of #1970 - asquared31415:open_unix_varargs, r=RalfJung
...
Allow varargs for libc::open when it is allowed by the second argument
This PR allows `libc::open` to be called using two or three arguments as defined in https://man7.org/linux/man-pages/man2/open.2.html
The presence of the third argument depends on the value of the second argument. If the second argument dictates that the third argument is *required* miri will emit an error if the argument is missing. If the second argument does *not* require a third argument, then the argument is ignored and passed as 0 internally (it would be ignored by libc anyway)
2022-03-05 22:47:51 +00:00
asquared31415
8e97599af4
allow varargs for libc::open when it is allowed by the second argument
2022-03-05 17:29:48 -05:00
bors
2c1b9ce348
Auto merge of #1998 - RalfJung:rustup, r=RalfJung
...
rustup
Adjusts our tests for https://github.com/rust-lang/rust/pull/92697
2022-03-05 22:26:57 +00:00
Ralf Jung
ec0e513c64
rustup
2022-03-05 17:26:32 -05:00
bors
926af6493b
Auto merge of #1999 - RalfJung:forward-env, r=oli-obk
...
add flag to forward specific env vars (while isolation remains enabled)
The flag is called `-Zmiri-env-forward=<var>`, but I am open to bikeshedding. ;)
2022-03-05 19:36:10 +00:00
bors
0242acc786
Auto merge of #2000 - RalfJung:simd, r=RalfJung
...
implement missing SIMD comparison operators, simd_xor, and simd_reduce_all
2022-03-05 18:47:28 +00:00
Ralf Jung
90207a5484
implement missing SIMD comparison operators, simd_xor, and simd_reduce_all
2022-03-05 13:45:13 -05:00
Ralf Jung
ceec2b3ceb
avoid env var forwarding logic panicking for non-UTF-8 env vars
2022-03-05 11:14:37 -05:00
Ralf Jung
3adc203c1c
add flag to forward specific env vars (while isolation remains enabled)
2022-03-05 11:14:37 -05:00
bors
a715171534
Auto merge of #1997 - RalfJung:simd, r=RalfJung
...
implement simd_neg and simd_fabs
This lets us run the puny portable-simd smoke test in the core test suite. ;)
2022-03-03 20:08:02 +00:00
Ralf Jung
0d4902f12f
implement simd_neg and simd_fabs
2022-03-03 14:54:54 -05:00
Ralf Jung
0147b88ce5
use binary_op over overflowing_binary_op
2022-03-03 14:44:50 -05:00
bors
80c3f424b9
Auto merge of #1995 - saethlin:trophies, r=RalfJung
...
rkyv deallocation alignment issue
2022-03-03 18:57:56 +00:00
Ben Kimock
0bd83245ed
rkyv deallocation alignment issue
2022-03-03 13:10:05 -05:00
bors
2f9ecdeba4
Auto merge of #1992 - RalfJung:sdiv, r=RalfJung
...
adjust for div/rem overflow being UB
This is the Miri side of https://github.com/rust-lang/rust/pull/94512 . Just some error messages change.
2022-03-03 17:32:59 +00:00
Ralf Jung
c0f7251055
add test for simd division overflow UB
2022-03-03 12:32:42 -05:00