]> granicus.if.org Git - llvm/commit
[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)
commit2a4a9564d6807cdb5434d20fe5460869cb9aa088
tree4512b01a74094ace24fc2d1d5941a2d35e99914a
parent078a3381ebeb364ad38107896c1d3d17bd9f5005
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317102 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-int-float-conversion-x86-64.ll [new file with mode: 0644]
test/CodeGen/X86/fast-isel-int-float-conversion.ll