blob: f3f165b1b52aed9a4d8f4c6428aae60f8132a843 [file] [log] [blame]
Nadav Rotema6b91ac2012-11-02 21:48:17 +00001; RUN: opt < %s -cost-model -analyze | FileCheck %s
2
3; The cost model does not have any target information so it can't make a decision.
Nadav Rotema6b91ac2012-11-02 21:48:17 +00004
Nadav Rotemb1615b12013-01-01 08:00:32 +00005; -- No triple in this module --
Nadav Rotema6b91ac2012-11-02 21:48:17 +00006
7;CHECK: Unknown cost {{.*}} add
8;CHECK: Unknown cost {{.*}} ret
9define i32 @no_info(i32 %arg) {
10 %e = add i32 %arg, %arg
11 ret i32 %e
12}