summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2015-03-04 14:23:25 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2015-03-04 14:23:25 +0000
commitdf93ccf49a26f15a4be605bce13163c4190e8072 (patch)
treee5cf1b865537f7c7a8a013e8f254fdc68400a7c4 /llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll
parentad8d849f48c4301cb34fd54715135241531419da (diff)
downloadbcm5719-llvm-df93ccf49a26f15a4be605bce13163c4190e8072.tar.gz
bcm5719-llvm-df93ccf49a26f15a4be605bce13163c4190e8072.zip
[X86][FastISel] Simplify the logic in method X86SelectSIToFP.
The target-independent selection algorithm in FastISel already knows how to select a SINT_TO_FP if the target is SSE but not AVX. On targets that have SSE but not AVX, the tablegen'd 'fastEmit' functions for ISD::SINT_TO_FP know how to select instruction X86::CVTSI2SSrr (for an i32 to f32 conversion) and X86::CVTSI2SDrr (for an i32 to f64 conversion). This patch simplifies the logic in method X86SelectSIToFP knowing that the code would not be reachable if the subtarget doesn't have AVX. No functional change intended. llvm-svn: 231243
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll')
-rw-r--r--llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll b/llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll
index d5fe833a40a..afa6ee9aa7a 100644
--- a/llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll
+++ b/llvm/test/CodeGen/X86/fast-isel-int-float-conversion.ll
@@ -1,5 +1,5 @@
-; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+sse2 -O0 --fast-isel-abort=1 < %s | FileCheck %s --check-prefix=ALL --check-prefix=SSE2
-; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+avx -O0 --fast-isel-abort=1 < %s | FileCheck %s --check-prefix=ALL --check-prefix=AVX
+; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+sse2 -fast-isel --fast-isel-abort=1 < %s | FileCheck %s --check-prefix=ALL --check-prefix=SSE2
+; RUN: llc -mtriple=x86_64-unknown-unknown -mcpu=generic -mattr=+avx -fast-isel --fast-isel-abort=1 < %s | FileCheck %s --check-prefix=ALL --check-prefix=AVX
define double @int_to_double_rr(i32 %a) {
OpenPOWER on IntegriCloud