blob: ff57bbb33c488be5bac475e6de0e03b3441843ad [file] [log] [blame]
Juergen Ributzkaaddb75a2014-08-21 20:57:57 +00001; RUN: llc -mtriple=arm64-apple-darwin -aarch64-atomic-cfg-tidy=0 -verify-machineinstrs < %s | FileCheck %s
Mehdi Amini945a6602015-02-27 18:32:11 +00002; RUN: llc -mtriple=arm64-apple-darwin -aarch64-atomic-cfg-tidy=0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
Juergen Ributzka50a40052014-08-01 18:39:24 +00003
4; Test if the BBs are reordred according to their branch weights.
5define i64 @branch_weights_test(i64 %a, i64 %b) {
6; CHECK-LABEL: branch_weights_test
7; CHECK-LABEL: success
8; CHECK-LABEL: fail
9 %1 = icmp ult i64 %a, %b
10 br i1 %1, label %fail, label %success, !prof !0
11
12fail:
13 ret i64 -1
14
15success:
16 ret i64 0
17}
18
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000019!0 = !{!"branch_weights", i32 0, i32 2147483647}