summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Analysis/CostModel/X86/fptosi.ll7
-rw-r--r--llvm/test/Analysis/CostModel/X86/fptoui.ll7
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Analysis/CostModel/X86/fptosi.ll b/llvm/test/Analysis/CostModel/X86/fptosi.ll
index 727c0e5ae6e..693efc2ffbf 100644
--- a/llvm/test/Analysis/CostModel/X86/fptosi.ll
+++ b/llvm/test/Analysis/CostModel/X86/fptosi.ll
@@ -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
diff --git a/llvm/test/Analysis/CostModel/X86/fptoui.ll b/llvm/test/Analysis/CostModel/X86/fptoui.ll
index 19a7c50a4ec..f45dd73cd06 100644
--- a/llvm/test/Analysis/CostModel/X86/fptoui.ll
+++ b/llvm/test/Analysis/CostModel/X86/fptoui.ll
@@ -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
OpenPOWER on IntegriCloud