summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-11-05 19:32:46 +0000
committerNadav Rotem <nrotem@apple.com>2012-11-05 19:32:46 +0000
commite623702c22e7cee4e02332b245a417a88ae6ffff (patch)
treeb1fcd57b8be41d13cb6a4d4d0ef12500e4c639fe /test
parent6837232a609fe7b13473606a1c8a18eabfe2df2a (diff)
downloadllvm-e623702c22e7cee4e02332b245a417a88ae6ffff.tar.gz
llvm-e623702c22e7cee4e02332b245a417a88ae6ffff.tar.bz2
llvm-e623702c22e7cee4e02332b245a417a88ae6ffff.tar.xz
Implement the cost of abnormal x86 instruction lowering as a table.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167395 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/CostModel/X86/arith.ll2
-rw-r--r--test/Transforms/LoopVectorize/X86/conversion-cost.ll2
2 files changed, 3 insertions, 1 deletions
diff --git a/test/Analysis/CostModel/X86/arith.ll b/test/Analysis/CostModel/X86/arith.ll
index 58b4a7c426..37cca8d540 100644
--- a/test/Analysis/CostModel/X86/arith.ll
+++ b/test/Analysis/CostModel/X86/arith.ll
@@ -12,6 +12,8 @@ define i32 @add(i32 %arg) {
%C = add <2 x i64> undef, undef
;CHECK: cost of 4 {{.*}} add
%D = add <4 x i64> undef, undef
+ ;CHECK: cost of 8 {{.*}} add
+ %E = add <8 x i64> undef, undef
;CHECK: cost of 1 {{.*}} ret
ret i32 undef
}
diff --git a/test/Transforms/LoopVectorize/X86/conversion-cost.ll b/test/Transforms/LoopVectorize/X86/conversion-cost.ll
index 8582613617..19bcdc5d90 100644
--- a/test/Transforms/LoopVectorize/X86/conversion-cost.ll
+++ b/test/Transforms/LoopVectorize/X86/conversion-cost.ll
@@ -25,7 +25,7 @@ define i32 @conversion_cost1(i32 %n, i8* nocapture %A, float* nocapture %B) noun
}
;CHECK: @conversion_cost2
-;CHECK: store <8 x float>
+;CHECK-NOT: <8 x float>
;CHECK: ret
define i32 @conversion_cost2(i32 %n, i8* nocapture %A, float* nocapture %B) nounwind uwtable ssp {
%1 = icmp sgt i32 %n, 9