Skip to content

Commit 9d78efb

Browse files
committed
Add most SSE3 intrinsics.
1 parent 907bbac commit 9d78efb

File tree

1 file changed

+7
-0
lines changed
  • src/librustc_platform_intrinsics

1 file changed

+7
-0
lines changed

src/librustc_platform_intrinsics/x86.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ pub fn find<'tcx>(_tcx: &ty::ctxt<'tcx>, name: &str) -> Option<Intrinsic> {
5757
"subs_epu16" => p!("sse2.psubus.w", (i16x8, i16x8) -> i16x8),
5858
"subs_epu8" => p!("sse2.psubus.b", (i8x16, i8x16) -> i8x16),
5959

60+
"addsub_pd" => p!("sse3.addsub.pd", (f64x2, f64x2) -> f64x2),
61+
"addsub_ps" => p!("sse3.addsub.ps", (f32x4, f32x4) -> f32x4),
62+
"hadd_pd" => p!("sse3.hadd.pd", (f64x2, f64x2) -> f64x2),
63+
"hadd_ps" => p!("sse3.hadd.ps", (f32x4, f32x4) -> f32x4),
64+
"hsub_pd" => p!("sse3.hsub.pd", (f64x2, f64x2) -> f64x2),
65+
"hsub_ps" => p!("sse3.hsub.ps", (f32x4, f32x4) -> f32x4),
66+
6067
"shuffle_epi8" => p!("ssse3.pshuf.b.128", (i8x16, i8x16) -> i8x16),
6168
_ => return None
6269
})

0 commit comments

Comments
 (0)