Skip to content

Commit c3edc57

Browse files
committed
Remove special handling in codegen for some SSE2 "storeu" intrinsics
Those were removed from stdarch in rust-lang/stdarch#1463 (`<*mut _>::write_unaligned` is used instead)
1 parent 537edd0 commit c3edc57

File tree

1 file changed

+0
-8
lines changed
  • compiler/rustc_codegen_cranelift/src/intrinsics

1 file changed

+0
-8
lines changed

compiler/rustc_codegen_cranelift/src/intrinsics/llvm_x86.rs

-8
Original file line numberDiff line numberDiff line change
@@ -506,14 +506,6 @@ pub(crate) fn codegen_x86_llvm_intrinsic_call<'tcx>(
506506
ret.place_lane(fx, 2).to_ptr().store(fx, res_2, MemFlags::trusted());
507507
ret.place_lane(fx, 3).to_ptr().store(fx, res_3, MemFlags::trusted());
508508
}
509-
"llvm.x86.sse2.storeu.dq" | "llvm.x86.sse2.storeu.pd" => {
510-
intrinsic_args!(fx, args => (mem_addr, a); intrinsic);
511-
let mem_addr = mem_addr.load_scalar(fx);
512-
513-
// FIXME correctly handle the unalignment
514-
let dest = CPlace::for_ptr(Pointer::new(mem_addr), a.layout());
515-
dest.write_cvalue(fx, a);
516-
}
517509
"llvm.x86.ssse3.pabs.b.128" | "llvm.x86.ssse3.pabs.w.128" | "llvm.x86.ssse3.pabs.d.128" => {
518510
let a = match args {
519511
[a] => a,

0 commit comments

Comments
 (0)