about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAntoni Boucher <bouanto@zoho.com>2023-10-09 13:16:47 -0400
committerAntoni Boucher <bouanto@zoho.com>2023-10-09 13:16:47 -0400
commita7532daa76f4e3f79957862ee5e466dd2233d86d (patch)
tree88fa8bdbe72cd65028067c943366eb19a425d194 /src
parenta00ea0bf986be52723a7e8b47c444d281955ce28 (diff)
downloadrust-a7532daa76f4e3f79957862ee5e466dd2233d86d.tar.gz
rust-a7532daa76f4e3f79957862ee5e466dd2233d86d.zip
Fix unchecked_ssub, unchecked_smul, and unchecked_umul
Diffstat (limited to 'src')
-rw-r--r--src/builder.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/builder.rs b/src/builder.rs
index 62bce7eb78c..b7841808934 100644
--- a/src/builder.rs
+++ b/src/builder.rs
@@ -664,7 +664,7 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
     }
 
     fn unchecked_ssub(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
-        a - b
+        self.gcc_sub(a, b)
     }
 
     fn unchecked_usub(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
@@ -673,11 +673,11 @@ impl<'a, 'gcc, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'gcc, 'tcx> {
     }
 
     fn unchecked_smul(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
-        a * b
+        self.gcc_mul(a, b)
     }
 
     fn unchecked_umul(&mut self, a: RValue<'gcc>, b: RValue<'gcc>) -> RValue<'gcc> {
-        a * b
+        self.gcc_mul(a, b)
     }
 
     fn fadd_fast(&mut self, lhs: RValue<'gcc>, rhs: RValue<'gcc>) -> RValue<'gcc> {