[X86][SSE][CostModel] Fixed uitofp/sitofp cost target tests to specify sse2/avx2...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 18 Jun 2015 21:26:01 +0000 (21:26 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 18 Jun 2015 21:26:01 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240062 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/CostModel/X86/sitofp.ll
test/Analysis/CostModel/X86/uitofp.ll

index edc937ecf946751587a1b25257eb2036d21288fb..ce2397c4393cdb3f28c2de70811e3f9c197b2b05 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE2 %s
-; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=knl -cost-model -analyze < %s | FileCheck --check-prefix=AVX512F %s
+; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+sse2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE2 %s
+; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx512f -cost-model -analyze < %s | FileCheck --check-prefix=AVX512F %s
 
 define <2 x double> @sitofpv2i8v2double(<2 x i8> %a) {
   ; SSE2: sitofpv2i8v2double
index 27ec268b42a88d6337c31c9d58dc3319e93fb911..d6e242c627aea8ed4575468cf5b363bfe7701f21 100644 (file)
@@ -1,10 +1,10 @@
-; RUN: llc -mtriple=x86_64-apple-darwin -mcpu=core2 < %s | FileCheck --check-prefix=SSE2-CODEGEN %s
-; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE2 %s
+; RUN: llc -mtriple=x86_64-apple-darwin -mattr=+sse2 < %s | FileCheck --check-prefix=SSE2-CODEGEN %s
+; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+sse2 -cost-model -analyze < %s | FileCheck --check-prefix=SSE2 %s
 
 ; In X86TargetTransformInfo::getCastInstrCost we have code that depends on
 ; getSimpleVT on a value type. On AVX2 we execute this code. Make sure we exit
 ; early if the type is not a simple value type before we call this function.
-; RUN: opt -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -cost-model -analyze < %s
+; RUN: opt -mtriple=x86_64-apple-darwin -mattr=+avx2 -cost-model -analyze < %s
 
 define <2 x double> @uitofpv2i8v2double(<2 x i8> %a) {
   ; SSE2: uitofpv2i8v2double