blob: 2c73f767e375368580a19d4356d9f022153911ba [file] [log] [blame]
Xinliang David Li241e6c72016-09-03 21:26:36 +00001; RUN: llc -mtriple=x86_64-unknown-unknown -print-after-all < %s 2>&1 | FileCheck %s
2
3; Function Attrs: norecurse nounwind readnone uwtable
4define i32 @foo(i32, i32, i32) {
5 %4 = and i32 %0, 3
6 %5 = icmp eq i32 %4, 1
7 %6 = select i1 %5, i32 %1, i32 %2, !prof !1
8; CHECK: br {{.*}}label{{.*}}, label{{.*}}, !prof ![[WT:.*]]
9 ret i32 %6
10}
11
12!llvm.ident = !{!0}
13
14!0 = !{!"clang version 4.0.0 (trunk 279683)"}
15!1 = !{!"branch_weights", i32 1000, i32 1 }
Benjamin Kramerdb9e0b62017-01-22 20:28:56 +000016; CHECK: ![[WT]] = !{!"branch_weights", i32 1000, i32 1}