@@ -1779,6 +1779,8 @@ fn trans_eager_binop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1779
1779
ast:: BiAdd => {
1780
1780
if is_float {
1781
1781
FAdd ( bcx, lhs, rhs, binop_debug_loc)
1782
+ } else if is_simd {
1783
+ Add ( bcx, lhs, rhs, binop_debug_loc)
1782
1784
} else {
1783
1785
let ( newbcx, res) = with_overflow_check (
1784
1786
bcx, OverflowOp :: Add , info, lhs_t, lhs, rhs, binop_debug_loc) ;
@@ -1789,6 +1791,8 @@ fn trans_eager_binop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1789
1791
ast:: BiSub => {
1790
1792
if is_float {
1791
1793
FSub ( bcx, lhs, rhs, binop_debug_loc)
1794
+ } else if is_simd {
1795
+ Sub ( bcx, lhs, rhs, binop_debug_loc)
1792
1796
} else {
1793
1797
let ( newbcx, res) = with_overflow_check (
1794
1798
bcx, OverflowOp :: Sub , info, lhs_t, lhs, rhs, binop_debug_loc) ;
@@ -1799,6 +1803,8 @@ fn trans_eager_binop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
1799
1803
ast:: BiMul => {
1800
1804
if is_float {
1801
1805
FMul ( bcx, lhs, rhs, binop_debug_loc)
1806
+ } else if is_simd {
1807
+ Mul ( bcx, lhs, rhs, binop_debug_loc)
1802
1808
} else {
1803
1809
let ( newbcx, res) = with_overflow_check (
1804
1810
bcx, OverflowOp :: Mul , info, lhs_t, lhs, rhs, binop_debug_loc) ;
0 commit comments