[Alignment][NFC] migrate DataLayout internal struct to llvm::Align
[llvm-core.git] / test / CodeGen / AArch64 / fast-isel-branch_weights.ll
blobc749e4d4041b6e0387ad1a91b352b978cff07742
1 ; RUN: llc -mtriple=arm64-apple-darwin -aarch64-enable-atomic-cfg-tidy=0                               -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple=arm64-apple-darwin -aarch64-enable-atomic-cfg-tidy=0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs < %s | FileCheck %s
4 ; Test if the BBs are reordred according to their branch weights.
5 define 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
12 fail:
13   ret i64 -1
15 success:
16   ret i64 0
19 !0 = !{!"branch_weights", i32 0, i32 2147483647}