summaryrefslogtreecommitdiff
path: root/test/Analysis/CostModel/X86/i32.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Analysis/CostModel/X86/i32.ll')
-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
+}