diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-01 11:42:36 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:19:01 +0100 |
commit | 4db1970abbfd503495f8711c6846ed3d68b2e818 (patch) | |
tree | ca3069aa121f1ba94f393625e9eb100f0107ea74 /gcc/rust/hir/tree/rust-hir.h | |
parent | b1a0e57bc2e630851df8f6c41fe39b86e711beee (diff) | |
download | gcc-4db1970abbfd503495f8711c6846ed3d68b2e818.zip gcc-4db1970abbfd503495f8711c6846ed3d68b2e818.tar.gz gcc-4db1970abbfd503495f8711c6846ed3d68b2e818.tar.bz2 |
gccrs: add {add,sub,mul}_with_overflow intrinsics
Fixes #1898
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
gcc/rust/ChangeLog:
* backend/rust-compile-intrinsic.cc (op_with_overflow_inner): wraps op_with_overflow
(std::function<tree): likewise
(op_with_overflow): generate the intrinsic based on the tree_code op
gcc/testsuite/ChangeLog:
* rust/compile/torture/intrinsics-8.rs: New test.
Diffstat (limited to 'gcc/rust/hir/tree/rust-hir.h')
0 files changed, 0 insertions, 0 deletions