Skip to content

Commit 94d9ff5

Browse files
committed
[intrinsics] add missing div and rem vector intrinsics
1 parent 54bbd56 commit 94d9ff5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_trans/intrinsic.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,8 @@ fn generic_simd_intrinsic<'a, 'tcx>(
12031203
simd_add: TyUint, TyInt => add, TyFloat => fadd;
12041204
simd_sub: TyUint, TyInt => sub, TyFloat => fsub;
12051205
simd_mul: TyUint, TyInt => mul, TyFloat => fmul;
1206-
simd_div: TyFloat => fdiv;
1206+
simd_div: TyUint => udiv, TyInt => sdiv, TyFloat => fdiv;
1207+
simd_rem: TyUint => urem, TyInt => srem, TyFloat => frem;
12071208
simd_shl: TyUint, TyInt => shl;
12081209
simd_shr: TyUint => lshr, TyInt => ashr;
12091210
simd_and: TyUint, TyInt => and;

0 commit comments

Comments
 (0)