aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis/CostModel/no_info.ll
blob: 5f3b56ad9cf882f8c5fb10f9fb287d2229b99795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; RUN: opt < %s -cost-model -analyze | FileCheck %s

; The cost model does not have any target information so it just makes boring
; assumptions.

; -- No triple in this module --

;CHECK: cost of 1 {{.*}} add
;CHECK: cost of 1 {{.*}} ret
define i32 @no_info(i32 %arg) {
  %e = add i32 %arg, %arg
  ret i32 %e
}