summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-22 16:29:08 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-02-22 16:29:08 +0000
commitb8237d2e2b6997e248a1666bf68cbfa7a0cf2de7 (patch)
treea0175c936a6adeb4adc52c76b433c3b059e1285d /llvm/test
parentbd786944b9718b5a1a5f8372b7356fa53ceae15b (diff)
downloadbcm5719-llvm-b8237d2e2b6997e248a1666bf68cbfa7a0cf2de7.tar.gz
bcm5719-llvm-b8237d2e2b6997e248a1666bf68cbfa7a0cf2de7.zip
[X86][AVX512] Add DQ+VLX scalar int<->fp tests cases for D43441
llvm-svn: 325804
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/CodeGen/X86/scalar-fp-to-i64.ll32
-rw-r--r--llvm/test/CodeGen/X86/scalar-int-to-fp.ll2
2 files changed, 20 insertions, 14 deletions
diff --git a/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll b/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll
index b94bee2a86c..9da96f62c7c 100644
--- a/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll
+++ b/llvm/test/CodeGen/X86/scalar-fp-to-i64.ll
@@ -1,4 +1,8 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i386-pc-windows-msvc -mattr=+avx512f,+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,X32,AVX512_32,AVX512_32_WIN,AVX512DQVL_32_WIN
+; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -mattr=+avx512f,+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,X32,AVX512_32,AVX512_32_LIN,AVX512DQVL_32_LIN
+; RUN: llc < %s -mtriple=x86_64-pc-windows-msvc -mattr=+avx512f,+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,X64,AVX512_64,AVX512_64_WIN,AVX512DQVL_64_WIN
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx512f,+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,X32,AVX512_64,AVX512_64_LIN,AVX512DQVL_64_LIN
; RUN: llc < %s -mtriple=i386-pc-windows-msvc -mattr=+avx512f,+avx512dq | FileCheck %s --check-prefixes=CHECK,X32,AVX512_32,AVX512_32_WIN,AVX512DQ_32_WIN
; RUN: llc < %s -mtriple=i386-unknown-linux-gnu -mattr=+avx512f,+avx512dq | FileCheck %s --check-prefixes=CHECK,X32,AVX512_32,AVX512_32_LIN,AVX512DQ_32_LIN
; RUN: llc < %s -mtriple=x86_64-pc-windows-msvc -mattr=+avx512f,+avx512dq | FileCheck %s --check-prefixes=CHECK,X64,AVX512_64,AVX512_64_WIN,AVX512DQ_64_WIN
@@ -1435,7 +1439,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; AVX512_32_LIN-NEXT: subl $28, %esp
; AVX512_32_LIN-NEXT: vmovaps {{[0-9]+}}(%esp), %xmm0
; AVX512_32_LIN-NEXT: vmovups %xmm0, (%esp)
-; AVX512_32_LIN-NEXT: calll __fixunstfdi
+; AVX512_32_LIN-NEXT: calll __fixunstfdi@PLT
; AVX512_32_LIN-NEXT: addl $28, %esp
; AVX512_32_LIN-NEXT: retl
;
@@ -1449,7 +1453,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; AVX512_64_LIN-LABEL: t_to_u64:
; AVX512_64_LIN: # %bb.0:
; AVX512_64_LIN-NEXT: pushq %rax
-; AVX512_64_LIN-NEXT: callq __fixunstfdi
+; AVX512_64_LIN-NEXT: callq __fixunstfdi@PLT
; AVX512_64_LIN-NEXT: popq %rcx
; AVX512_64_LIN-NEXT: retq
;
@@ -1470,7 +1474,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; SSE3_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE3_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE3_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
-; SSE3_32_LIN-NEXT: calll __fixunstfdi
+; SSE3_32_LIN-NEXT: calll __fixunstfdi@PLT
; SSE3_32_LIN-NEXT: addl $28, %esp
; SSE3_32_LIN-NEXT: retl
;
@@ -1484,7 +1488,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; SSE3_64_LIN-LABEL: t_to_u64:
; SSE3_64_LIN: # %bb.0:
; SSE3_64_LIN-NEXT: pushq %rax
-; SSE3_64_LIN-NEXT: callq __fixunstfdi
+; SSE3_64_LIN-NEXT: callq __fixunstfdi@PLT
; SSE3_64_LIN-NEXT: popq %rcx
; SSE3_64_LIN-NEXT: retq
;
@@ -1505,7 +1509,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; SSE2_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE2_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE2_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
-; SSE2_32_LIN-NEXT: calll __fixunstfdi
+; SSE2_32_LIN-NEXT: calll __fixunstfdi@PLT
; SSE2_32_LIN-NEXT: addl $28, %esp
; SSE2_32_LIN-NEXT: retl
;
@@ -1519,7 +1523,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; SSE2_64_LIN-LABEL: t_to_u64:
; SSE2_64_LIN: # %bb.0:
; SSE2_64_LIN-NEXT: pushq %rax
-; SSE2_64_LIN-NEXT: callq __fixunstfdi
+; SSE2_64_LIN-NEXT: callq __fixunstfdi@PLT
; SSE2_64_LIN-NEXT: popq %rcx
; SSE2_64_LIN-NEXT: retq
;
@@ -1540,7 +1544,7 @@ define i64 @t_to_u64(fp128 %a) nounwind {
; X87_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; X87_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; X87_LIN-NEXT: pushl {{[0-9]+}}(%esp)
-; X87_LIN-NEXT: calll __fixunstfdi
+; X87_LIN-NEXT: calll __fixunstfdi@PLT
; X87_LIN-NEXT: addl $28, %esp
; X87_LIN-NEXT: retl
%r = fptoui fp128 %a to i64
@@ -1562,7 +1566,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; AVX512_32_LIN-NEXT: subl $28, %esp
; AVX512_32_LIN-NEXT: vmovaps {{[0-9]+}}(%esp), %xmm0
; AVX512_32_LIN-NEXT: vmovups %xmm0, (%esp)
-; AVX512_32_LIN-NEXT: calll __fixtfdi
+; AVX512_32_LIN-NEXT: calll __fixtfdi@PLT
; AVX512_32_LIN-NEXT: addl $28, %esp
; AVX512_32_LIN-NEXT: retl
;
@@ -1576,7 +1580,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; AVX512_64_LIN-LABEL: t_to_s64:
; AVX512_64_LIN: # %bb.0:
; AVX512_64_LIN-NEXT: pushq %rax
-; AVX512_64_LIN-NEXT: callq __fixtfdi
+; AVX512_64_LIN-NEXT: callq __fixtfdi@PLT
; AVX512_64_LIN-NEXT: popq %rcx
; AVX512_64_LIN-NEXT: retq
;
@@ -1597,7 +1601,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; SSE3_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE3_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE3_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
-; SSE3_32_LIN-NEXT: calll __fixtfdi
+; SSE3_32_LIN-NEXT: calll __fixtfdi@PLT
; SSE3_32_LIN-NEXT: addl $28, %esp
; SSE3_32_LIN-NEXT: retl
;
@@ -1611,7 +1615,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; SSE3_64_LIN-LABEL: t_to_s64:
; SSE3_64_LIN: # %bb.0:
; SSE3_64_LIN-NEXT: pushq %rax
-; SSE3_64_LIN-NEXT: callq __fixtfdi
+; SSE3_64_LIN-NEXT: callq __fixtfdi@PLT
; SSE3_64_LIN-NEXT: popq %rcx
; SSE3_64_LIN-NEXT: retq
;
@@ -1632,7 +1636,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; SSE2_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE2_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; SSE2_32_LIN-NEXT: pushl {{[0-9]+}}(%esp)
-; SSE2_32_LIN-NEXT: calll __fixtfdi
+; SSE2_32_LIN-NEXT: calll __fixtfdi@PLT
; SSE2_32_LIN-NEXT: addl $28, %esp
; SSE2_32_LIN-NEXT: retl
;
@@ -1646,7 +1650,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; SSE2_64_LIN-LABEL: t_to_s64:
; SSE2_64_LIN: # %bb.0:
; SSE2_64_LIN-NEXT: pushq %rax
-; SSE2_64_LIN-NEXT: callq __fixtfdi
+; SSE2_64_LIN-NEXT: callq __fixtfdi@PLT
; SSE2_64_LIN-NEXT: popq %rcx
; SSE2_64_LIN-NEXT: retq
;
@@ -1667,7 +1671,7 @@ define i64 @t_to_s64(fp128 %a) nounwind {
; X87_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; X87_LIN-NEXT: pushl {{[0-9]+}}(%esp)
; X87_LIN-NEXT: pushl {{[0-9]+}}(%esp)
-; X87_LIN-NEXT: calll __fixtfdi
+; X87_LIN-NEXT: calll __fixtfdi@PLT
; X87_LIN-NEXT: addl $28, %esp
; X87_LIN-NEXT: retl
%r = fptosi fp128 %a to i64
diff --git a/llvm/test/CodeGen/X86/scalar-int-to-fp.ll b/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
index d7d6089588e..b77a7fe6d5b 100644
--- a/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
+++ b/llvm/test/CodeGen/X86/scalar-int-to-fp.ll
@@ -1,4 +1,6 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+avx512f,+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,CHECK32,AVX512_32,AVX512DQVL_32
+; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512dq,+avx512vl | FileCheck %s --check-prefixes=CHECK,CHECK64,AVX512_64,AVX512DQVL_64
; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+avx512f,+avx512dq | FileCheck %s --check-prefixes=CHECK,CHECK32,AVX512_32,AVX512DQ_32
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512dq | FileCheck %s --check-prefixes=CHECK,CHECK64,AVX512_64,AVX512DQ_64
; RUN: llc < %s -mtriple=i386-unknown-unknown -mattr=+avx512f | FileCheck %s --check-prefixes=CHECK,CHECK32,AVX512_32,AVX512F_32
OpenPOWER on IntegriCloud