]> granicus.if.org Git - llvm/commitdiff
[CostModel][X86] Add v2f32 -> v2i64 fptosi/fptoui cost tests
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 23 Nov 2016 11:43:00 +0000 (11:43 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 23 Nov 2016 11:43:00 +0000 (11:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@287756 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/CostModel/X86/fptosi.ll
test/Analysis/CostModel/X86/fptoui.ll

index 727c0e5ae6e6c32d12cf8f3104265b7ff207634c..693efc2ffbfb9cd40e5d7210dcdbbc2c3e15ab9b 100644 (file)
@@ -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
index 19a7c50a4ecc5600cfc7943692871a07be197745..f45dd73cd069b665a0f0c2f9dc77457300197a3b 100644 (file)
@@ -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