aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/AArch64/compare-branch.ll
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:17:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:17:04 +0000
commitb915e9e0fc85ba6f398b3fab0db6a81a8913af94 (patch)
tree98b8f811c7aff2547cab8642daf372d6c59502fb /test/CodeGen/AArch64/compare-branch.ll
parent6421cca32f69ac849537a3cff78c352195e99f1b (diff)
Notes
Diffstat (limited to 'test/CodeGen/AArch64/compare-branch.ll')
-rw-r--r--test/CodeGen/AArch64/compare-branch.ll11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/CodeGen/AArch64/compare-branch.ll b/test/CodeGen/AArch64/compare-branch.ll
index 4e0f69d195c2..506314451224 100644
--- a/test/CodeGen/AArch64/compare-branch.ll
+++ b/test/CodeGen/AArch64/compare-branch.ll
@@ -8,25 +8,25 @@ define void @foo() {
%val1 = load volatile i32, i32* @var32
%tst1 = icmp eq i32 %val1, 0
- br i1 %tst1, label %end, label %test2
+ br i1 %tst1, label %end, label %test2, !prof !1
; CHECK: cbz {{w[0-9]+}}, .LBB
test2:
%val2 = load volatile i32, i32* @var32
%tst2 = icmp ne i32 %val2, 0
- br i1 %tst2, label %end, label %test3
+ br i1 %tst2, label %end, label %test3, !prof !1
; CHECK: cbnz {{w[0-9]+}}, .LBB
test3:
%val3 = load volatile i64, i64* @var64
%tst3 = icmp eq i64 %val3, 0
- br i1 %tst3, label %end, label %test4
+ br i1 %tst3, label %end, label %test4, !prof !1
; CHECK: cbz {{x[0-9]+}}, .LBB
test4:
%val4 = load volatile i64, i64* @var64
%tst4 = icmp ne i64 %val4, 0
- br i1 %tst4, label %end, label %test5
+ br i1 %tst4, label %end, label %test5, !prof !1
; CHECK: cbnz {{x[0-9]+}}, .LBB
test5:
@@ -36,3 +36,6 @@ test5:
end:
ret void
}
+
+
+!1 = !{!"branch_weights", i32 1, i32 1}