projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[FastISel][AArch64] Optimize compare-and-branch for i1 to use 'tbz'.
[oota-llvm.git]
/
test
/
CodeGen
/
AArch64
/
fast-isel-cbz.ll
diff --git
a/test/CodeGen/AArch64/fast-isel-cbz.ll
b/test/CodeGen/AArch64/fast-isel-cbz.ll
index 20c5df105ad2bbc4de65b38582fefec45f352529..6e31a045d28552e75721359db9d034fa2fa3449c 100644
(file)
--- a/
test/CodeGen/AArch64/fast-isel-cbz.ll
+++ b/
test/CodeGen/AArch64/fast-isel-cbz.ll
@@
-2,8
+2,7
@@
define i32 @icmp_eq_i1(i1 %a) {
; CHECK-LABEL: icmp_eq_i1
-; CHECK: and [[REG:w[0-9]+]], w0, #0x1
-; CHECK: cbz [[REG]], {{LBB.+_2}}
+; CHECK: tbz w0, #0, {{LBB.+_2}}
%1 = icmp eq i1 %a, 0
br i1 %1, label %bb1, label %bb2
bb2: