[llvm] r287756 - [CostModel][X86] Add v2f32 -> v2i64 fptosi/fptoui cost tests
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 23 03:43:00 PST 2016
Author: rksimon
Date: Wed Nov 23 05:43:00 2016
New Revision: 287756
URL: http://llvm.org/viewvc/llvm-project?rev=287756&view=rev
Log:
[CostModel][X86] Add v2f32 -> v2i64 fptosi/fptoui cost tests
Modified:
llvm/trunk/test/Analysis/CostModel/X86/fptosi.ll
llvm/trunk/test/Analysis/CostModel/X86/fptoui.ll
Modified: llvm/trunk/test/Analysis/CostModel/X86/fptosi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CostModel/X86/fptosi.ll?rev=287756&r1=287755&r2=287756&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CostModel/X86/fptosi.ll (original)
+++ llvm/trunk/test/Analysis/CostModel/X86/fptosi.ll Wed Nov 23 05:43:00 2016
@@ -134,6 +134,13 @@ define i32 @fptosi_float_i64(i32 %arg) {
; AVX2: cost of 1 {{.*}} %I64 = fptosi
; AVX512: cost of 1 {{.*}} %I64 = fptosi
%I64 = fptosi float undef to i64
+ ; SSE2: cost of 6 {{.*}} %V2I64 = fptosi
+ ; SSE42: cost of 6 {{.*}} %V2I64 = fptosi
+ ; AVX1: cost of 6 {{.*}} %V2I64 = fptosi
+ ; AVX2: cost of 6 {{.*}} %V2I64 = fptosi
+ ; AVX512F: cost of 6 {{.*}} %V2I64 = fptosi
+ ; AVX512DQ: cost of 6 {{.*}} %V2I64 = fptosi
+ %V2I64 = fptosi <2 x float> undef to <2 x i64>
; SSE2: cost of 13 {{.*}} %V4I64 = fptosi
; SSE42: cost of 13 {{.*}} %V4I64 = fptosi
; AVX1: cost of 12 {{.*}} %V4I64 = fptosi
Modified: llvm/trunk/test/Analysis/CostModel/X86/fptoui.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/CostModel/X86/fptoui.ll?rev=287756&r1=287755&r2=287756&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/CostModel/X86/fptoui.ll (original)
+++ llvm/trunk/test/Analysis/CostModel/X86/fptoui.ll Wed Nov 23 05:43:00 2016
@@ -136,6 +136,13 @@ define i32 @fptoui_float_i64(i32 %arg) {
; AVX2: cost of 4 {{.*}} %I64 = fptoui
; AVX512: cost of 1 {{.*}} %I64 = fptoui
%I64 = fptoui float undef to i64
+ ; SSE2: cost of 12 {{.*}} %V2I64 = fptoui
+ ; SSE42: cost of 12 {{.*}} %V2I64 = fptoui
+ ; AVX1: cost of 12 {{.*}} %V2I64 = fptoui
+ ; AVX2: cost of 12 {{.*}} %V2I64 = fptoui
+ ; AVX512F: cost of 6 {{.*}} %V2I64 = fptoui
+ ; AVX512DQ: cost of 1 {{.*}} %V2I64 = fptoui
+ %V2I64 = fptoui <2 x float> undef to <2 x i64>
; SSE2: cost of 25 {{.*}} %V4I64 = fptoui
; SSE42: cost of 25 {{.*}} %V4I64 = fptoui
; AVX1: cost of 24 {{.*}} %V4I64 = fptoui
More information about the llvm-commits
mailing list