blob: 5f3b56ad9cf882f8c5fb10f9fb287d2229b99795 [file] [log] [blame]
Nadav Rotema6b91ac2012-11-02 21:48:17 +00001; RUN: opt < %s -cost-model -analyze | FileCheck %s
2
Chandler Carruth705b1852015-01-31 03:43:40 +00003; The cost model does not have any target information so it just makes boring
4; assumptions.
Nadav Rotema6b91ac2012-11-02 21:48:17 +00005
Nadav Rotemb1615b12013-01-01 08:00:32 +00006; -- No triple in this module --
Nadav Rotema6b91ac2012-11-02 21:48:17 +00007
Chandler Carruth705b1852015-01-31 03:43:40 +00008;CHECK: cost of 1 {{.*}} add
9;CHECK: cost of 1 {{.*}} ret
Nadav Rotema6b91ac2012-11-02 21:48:17 +000010define i32 @no_info(i32 %arg) {
11 %e = add i32 %arg, %arg
12 ret i32 %e
13}