Alex Crichton
38428e1fbb
Expand modules instantiated in instantiate-wasm-smith
...
This commit uses the new `MaybeInvalidModule` type in `wasm-smith` to
try to explore more points in the fuzz target space in the
`instantiate-maybe-invalid` fuzz target. The goal here is to use the raw
fuzz input as the body of a function to stress the validator/decoder a
bit more, and try to get inputs we might not otherwise generate.
2020-09-08 14:29:27 -07:00
Chris Fallin
3d6c4d312f
Merge pull request #2187 from akirilov-arm/ALUOp3
...
AArch64: Introduce an enum for ternary integer operations
2020-09-08 12:57:59 -07:00
Chris Fallin
e913bcb26a
Merge pull request #2179 from jgouly/mvn
...
arm64: Don't always materialise a 64-bit constant
2020-09-08 09:17:08 -07:00
bjorn3
9428480230
Merge SignExtendAlAh and SignExtendRaxRdx
2020-09-08 15:00:24 +02:00
bjorn3
3dcda164dc
Fix nits
2020-09-08 15:00:24 +02:00
bjorn3
9999913a31
Fix sign extension
...
Co-authored-by: Max Graey <maxgraey@gmail.com >
2020-09-08 15:00:24 +02:00
bjorn3
067255ef45
x64: Implement rotl and rotr for small integers
2020-09-08 15:00:24 +02:00
bjorn3
4251a950ba
x64: Implement ishl, ushr and sshr for small integers
2020-09-08 15:00:24 +02:00
bjorn3
cc35f1e9bb
x64: Misc small integer fixes
2020-09-08 15:00:24 +02:00
bjorn3
ce033f2a0c
x64: Fix udiv and sdiv for 8bit integers
2020-09-08 15:00:24 +02:00
bjorn3
74642b166f
x64: Implement ineg and bnot
2020-09-08 15:00:24 +02:00
bjorn3
f1fdd5764a
Limit jump tables to 32bit in Switch
...
This is the maximum size supported by the x64 backend
2020-09-08 15:00:24 +02:00
Anton Kirilov
e92f949663
AArch64: Introduce an enum for ternary integer operations
...
This commit performs a small cleanup in the AArch64 backend - after
the MAdd and MSub variants have been extracted, the ALUOp enum is
used purely for binary integer operations.
Also, Inst::Mov has been renamed to Inst::Mov64 for consistency.
Copyright (c) 2020, Arm Limited.
2020-09-08 13:22:22 +01:00
Johnnie Birch
a64af55cda
Adds x64 packed negation for the new backend
2020-09-07 11:56:05 -07:00
bjorn3
ba9908dd0f
Don't substract 1 from end_addr in line program writing ( #2174 )
...
* Don't substract 1 from end_addr in line program writing
Fixes #2173
* add testcase for end_sequence having offset past retq (#1 )
* Update tests/all/debug/translate.rs
Co-authored-by: Gabor Greif <ggreif@gmail.com >
Co-authored-by: Gabor Greif <ggreif@gmail.com >
2020-09-07 08:41:44 -05:00
Pat Hickey
48fab12142
Merge pull request #2160 from bytecodealliance/pch/wasi_common_array_writer
...
wasi-common: factor out common string array writer code
2020-09-03 18:01:04 -07:00
Pat Hickey
776f12ae3c
tests: exercise array getters
2020-09-03 16:41:10 -07:00
Pat Hickey
580c236dee
wiggle: implement array get/get_range in terms of ptr/add/as_array
...
hard to get it wrong when you use the safe primitives i already made!
2020-09-03 16:40:45 -07:00
Pat Hickey
1d410d6559
move more constructor stuff into stringarray
2020-09-02 17:16:39 -07:00
Pat Hickey
39f1c9716c
restructure StringArrayWriter trait into StringArray struct
2020-09-02 14:11:32 -07:00
Pat Hickey
b63e974014
code review fixes
2020-09-02 13:39:32 -07:00
Pat Hickey
82b3672956
delete extra dep
2020-09-02 13:18:09 -07:00
Pat Hickey
ddd50f7443
fix error report
2020-09-02 13:13:13 -07:00
Pat Hickey
1047f3ce27
Merge remote-tracking branch 'origin/main' into pch/wasi_common_array_writer
2020-09-02 12:48:01 -07:00
Pat Hickey
2ef78d0a88
Merge pull request #2182 from bytecodealliance/pch/staticvec_broken_again
...
CI: pin nightly toolchain to 2020-08-31 - staticvec is broken with 09-01
2020-09-02 12:47:30 -07:00
Pat Hickey
f3f6127217
maybe try nightly 08-25?
2020-09-02 11:17:54 -07:00
Pat Hickey
e98f136adb
pin nightly toolchain to 2020-08-30 - staticvec is broken with 09-01
2020-09-02 11:12:08 -07:00
Pat Hickey
7eb607b076
bugfix!
2020-09-02 10:55:27 -07:00
Pat Hickey
fe5d6d59e6
wasi example: theres lots of useful tracing messages for debugging
2020-09-01 14:34:12 -07:00
Pat Hickey
a2eae90701
test-all.sh: wasimtime-wasi-c does not exist anymore
2020-09-01 13:50:31 -07:00
Pat Hickey
51d88f7899
wasi-common: move implementation of args, env methods into StringArrayWriter
2020-09-01 13:50:31 -07:00
Pat Hickey
6213a05c85
wiggle: add array indexing methods to GuestPtr<[T]>
2020-09-01 13:50:31 -07:00
Pat Hickey
87222d6db0
wasi-common: move GuestPtr deref out of path::get
2020-09-01 13:50:30 -07:00
Pat Hickey
20ccc11564
Merge pull request #2140 from bytecodealliance/pch/wasi_error_handling
...
wasi-common: refactor error types
2020-09-01 13:01:26 -07:00
Joey Gouly
650d48cd84
arm64: Don't always materialise a 64-bit constant
...
This improves the mov/movk/movn sequnce when the high half of the
64-bit value is all zero.
Copyright (c) 2020, Arm Limited.
2020-09-01 13:29:01 +01:00
Pat Hickey
c9ec60dcce
Merge pull request #2169 from bytecodealliance/pch/fix_wasmtime_wiggle
...
wiggle-wasmtime: witx paths should be relative to CARGO_MANIFEST_DIR,…
2020-08-31 10:05:04 -07:00
MaxGraey
a8f7041296
new implementations for nearest lib calls
...
use approach with copysign for handling negative zero
format
refactor for better branch prediction
move copysign back to internal branch
format
fix
use abs instead branches
better comments
switch arms for better branch prediction
2020-08-31 09:39:20 -07:00
Benjamin Bouvier
a7f7c23bf9
machinst aarch64: in baldrdash, allow returning only one value across register classes;
...
Baldrdash's API requires that there is at most one result in a register,
across all the possible register classes: in particular, it's not
possible to return an i64 value in a register while returning an v128
value in another register.
This patch adds a notion of "remaining register values", so this is
properly taking into account when choosing whether a return value may be
put into a register or not.
2020-08-31 12:36:26 +02:00
penguin-wwy
e535005c74
Remove unused argument for clif-util compile commandline
2020-08-31 10:43:30 +02:00
CohenArthur
6849dc40bd
Fix typo in generated documentation for entity! ( #2176 )
...
* entity: Fix typo in generated documentation
The same function documentation was used for `from_u32()` and `as_u32()`
while their behaviour is different
2020-08-31 10:40:24 +02:00
Nick Fitzgerald
a30966e907
Merge pull request #2175 from alexcrichton/update-wasm-smith
...
Bump wasm-smith dependency
2020-08-29 11:53:32 -07:00
Alex Crichton
e12499c9ae
Bump wasm-smith dependency
...
Brings in a fix for limiting the length of import strings generated.
2020-08-29 10:51:51 -07:00
Pat Hickey
335886134c
fix test
2020-08-28 17:11:11 -07:00
Pat Hickey
edefbf7c73
fix tests
2020-08-28 15:58:16 -07:00
Pat Hickey
22b427baa0
use WASI_ROOT env var to specify witx paths to wiggle macros
2020-08-28 15:42:51 -07:00
Pat Hickey
91dac9c7e8
wiggle: witx paths use shell expansion
...
instead of always being relative to CARGO_MANIFEST_DIR, each use site is
responsible for either putting that variable or another one (set by a
build.rs) at the start of witx paths.
2020-08-28 15:42:48 -07:00
Max de Danschutter
f1a5e55b98
Increase into-func to accept 16 arguments ( #2170 )
2020-08-28 10:39:48 -05:00
Pat Hickey
5c6ed0c736
wip - didnt have time to finish this before quittin time
2020-08-27 18:19:53 -07:00
Pat Hickey
4dabe3fad6
wasmtime-wasi: fix invocation of wasmtime_integration!
...
should use path relative to this crates's root
2020-08-27 16:12:20 -07:00
Pat Hickey
82d2a48896
wiggle-wasmtime: witx paths should be relative to CARGO_MANIFEST_DIR, not WASI_ROOT
...
the WASI_ROOT was leftover from when this code was part of `wig`.
2020-08-27 16:03:05 -07:00