summaryrefslogtreecommitdiff
path: root/test/Analysis
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2012-11-05 21:11:10 +0000
committerNadav Rotem <nrotem@apple.com>2012-11-05 21:11:10 +0000
commit75138f58b0abaff54270481e879bc770df88114c (patch)
tree6087626bcd7bc842cc0cc8304e7741dbc2bb2508 /test/Analysis
parent28989889bf3aa3314562d438aece245b71176ec4 (diff)
downloadllvm-75138f58b0abaff54270481e879bc770df88114c.tar.gz
llvm-75138f58b0abaff54270481e879bc770df88114c.tar.bz2
llvm-75138f58b0abaff54270481e879bc770df88114c.tar.xz
Cost Model: teach the cost model about expanding integers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167401 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis')
-rw-r--r--test/Analysis/CostModel/X86/i32.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Analysis/CostModel/X86/i32.ll b/test/Analysis/CostModel/X86/i32.ll
new file mode 100644
index 0000000000..4015e0b1ee
--- /dev/null
+++ b/test/Analysis/CostModel/X86/i32.ll
@@ -0,0 +1,9 @@
+; RUN: opt < %s -cost-model -analyze -mtriple=i386 -mcpu=corei7-avx | FileCheck %s
+
+
+;CHECK: cost of 2 {{.*}} add
+;CHECK: cost of 1 {{.*}} ret
+define i32 @no_info(i32 %arg) {
+ %e = add i64 undef, undef
+ ret i32 undef
+}