[X86] Add 64-bit int to float/double conversion with AVX to X86FastISel::X86SelectSIToFP
authorCraig Topper <craig.topper@intel.com>
Wed, 1 Nov 2017 16:23:06 +0000 (16:23 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 1 Nov 2017 16:23:06 +0000 (16:23 +0000)
commit5ae677e102e35e4cabe393ae6185e25e49c91160
treeed4d3de52e6449c9e141d47a443fba22d91a3a1a
parent3d971e39f8a41b10e0a55232ce83be5c00a29d28
[X86] Add 64-bit int to float/double conversion with AVX  to X86FastISel::X86SelectSIToFP

Summary:
[X86] Teach fast isel to handle i64 sitofp with AVX.

For some reason we only handled i32 sitofp with AVX. But with SSE only we support i64 so we should do the same with AVX.

Also add i686 command lines for the 32-bit tests. 64-bit tests are in a separate file to avoid a fast-isel abort failure in 32-bit mode.

Reviewers: RKSimon, zvi

Reviewed By: RKSimon

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D39450

llvm-svn: 317102
llvm/lib/Target/X86/X86FastISel.cpp
llvm/test/CodeGen/X86/fast-isel-int-float-conversion-x86-64.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll