You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This tweaks how we handle the right hand side of rotate intrinsics and
tweaks how we handle integers so that we can fall back on _BitInt(128)
on some targets.
gcc/rust/ChangeLog:
* backend/rust-compile-intrinsic.cc: Include "convert.h".
(rotate_handler): Convert the second parameter into an unsigned
int.
* rust-backend.h (RUST_INT_TREE_U8): Define macro.
(RUST_INT_TREE_U16): Likewise.
(RUST_INT_TREE_U32): Likewise.
(RUST_INT_TREE_U64): Likewise.
(RUST_INT_TREE_U128): Likewise.
(RUST_INT_TREE_I8): Likewise.
(RUST_INT_TREE_I16): Likewise.
(RUST_INT_TREE_I32): Likewise.
(RUST_INT_TREE_I64): Likewise.
(RUST_INT_TREE_I128): Likewise.
(rust_int_trees): Declare extern variable.
(rust_int_names): Likewise.
* rust-gcc.cc: Include "target.h".
(rust_int_trees): Define variable.
(rust_int_names): Likewise.
(setup_normal_integers): Define static function to set up
rust_int_trees.
(init): Call setup_normal_integers.
* backend/rust-compile-type.cc (TyTyResolveCompile::visit): Use
rust_int_trees via macros to obtain integer type trees.
* config-lang.in (gtfiles): Add "rust-backend.h".
gcc/testsuite/ChangeLog:
* rust/execute/torture/sip-hasher.rs: Enable on 32 bit targets.
Signed-off-by: Owen Avery <[email protected]>
0 commit comments