diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-03-01 11:42:36 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-03-01 21:23:44 +0000 |
commit | 23befb042f90f5c84a59c0901b147c24a704847b (patch) | |
tree | 00ab5e2a018762be7bb8a5382e47a9b97550d6c9 /gcc/rust/hir | |
parent | 7394a6893dd9fc2bc34822e002b53eb200ff51d5 (diff) | |
download | gcc-23befb042f90f5c84a59c0901b147c24a704847b.zip gcc-23befb042f90f5c84a59c0901b147c24a704847b.tar.gz gcc-23befb042f90f5c84a59c0901b147c24a704847b.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')
0 files changed, 0 insertions, 0 deletions