1 ; RUN: opt -lower-expect -S < %s
2 ; RUN: opt -passes='function(lower-expect)' -S < %s
4 define i64 @foo(i64 %arg) #0 {
6 %tmp = alloca i64, align 8
7 store i64 %arg, i64* %tmp, align 8
8 %tmp1 = load i64, i64* %tmp, align 8
9 %tmp2 = load i64, i64* %tmp, align 8
10 %tmp3 = call i64 @llvm.expect.i64(i64 %tmp1, i64 %tmp2)
14 ; Function Attrs: nounwind readnone
15 declare i64 @llvm.expect.i64(i64, i64)
18 !llvm.module.flags = !{!0}
21 !0 = !{i32 1, !"wchar_size", i32 4}
22 !1 = !{!"clang version 5.0.0 (trunk 304723)"}