5f3b56ad9cf882f8c5fb10f9fb287d2229b99795
[oota-llvm.git] / test / Analysis / CostModel / no_info.ll
1 ; RUN: opt < %s -cost-model -analyze | FileCheck %s
2
3 ; The cost model does not have any target information so it just makes boring
4 ; assumptions.
5
6 ; -- No triple in this module --
7
8 ;CHECK: cost of 1 {{.*}} add
9 ;CHECK: cost of 1 {{.*}} ret
10 define i32 @no_info(i32 %arg) {
11   %e = add i32 %arg, %arg
12   ret i32 %e
13 }