@@ -1766,6 +1766,8 @@ fn trans_eager_binop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1766
1766
ast:: BiAdd => {
1767
1767
if is_float {
1768
1768
FAdd ( bcx, lhs, rhs, binop_debug_loc)
1769
+ } else if is_simd {
1770
+ Add ( bcx, lhs, rhs, binop_debug_loc)
1769
1771
} else {
1770
1772
let ( newbcx, res) = with_overflow_check (
1771
1773
bcx, OverflowOp :: Add , info, lhs_t, lhs, rhs, binop_debug_loc) ;
@@ -1776,6 +1778,8 @@ fn trans_eager_binop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1776
1778
ast:: BiSub => {
1777
1779
if is_float {
1778
1780
FSub ( bcx, lhs, rhs, binop_debug_loc)
1781
+ } else if is_simd {
1782
+ Sub ( bcx, lhs, rhs, binop_debug_loc)
1779
1783
} else {
1780
1784
let ( newbcx, res) = with_overflow_check (
1781
1785
bcx, OverflowOp :: Sub , info, lhs_t, lhs, rhs, binop_debug_loc) ;
@@ -1786,6 +1790,8 @@ fn trans_eager_binop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1786
1790
ast:: BiMul => {
1787
1791
if is_float {
1788
1792
FMul ( bcx, lhs, rhs, binop_debug_loc)
1793
+ } else if is_simd {
1794
+ Mul ( bcx, lhs, rhs, binop_debug_loc)
1789
1795
} else {
1790
1796
let ( newbcx, res) = with_overflow_check (
1791
1797
bcx, OverflowOp :: Mul , info, lhs_t, lhs, rhs, binop_debug_loc) ;
0 commit comments