rust-lang / rustc_codegen_cranelift

Cranelift based backend for rustc
Apache License 2.0
1.59k stars 100 forks source link

add `llvm.x86.sse2.cvtps2dq` #1495

Closed folkertdev closed 3 months ago

folkertdev commented 3 months ago

part of https://github.com/rust-lang/rustc_codegen_cranelift/issues/1492, but some further intrinsics are needed for the tiny_skia test suite to pass with cranelift:

warning: unsupported x86 llvm intrinsic llvm.x86.sse.rcp.ps; replacing with trap

warning: unsupported x86 llvm intrinsic llvm.x86.sse.rsqrt.ps; replacing with trap

warning: unsupported x86 llvm intrinsic llvm.x86.sse2.psll.d; replacing with trap

warning: unsupported x86 llvm intrinsic llvm.x86.sse2.psrl.d; replacing with trap

nonetheless, this addition makes 26 more tests pass

bjorn3 commented 3 months ago

Thanks!

I'm currently trying to completely rework the way vendor intrinsics are implemented. I don't know if it will work out yet, but maybe hold off on implementing other intrinsics for now.