AArch64FastISel: Use cbz/cbnz to branch on i1
[oota-llvm.git] / test / CodeGen / AArch64 / fast-isel-branch-cond-mask.ll
index c018b2778b04bd44ff8c59c9fbf07bbe0a867792..55fbf63319ee3da06f698cf1727caaa4dc5cd287 100644 (file)
@@ -4,8 +4,7 @@ define void @test(i64 %a, i64 %b, i2* %c) {
 ; CHECK-LABEL: test
 ; CHECK:       and [[REG1:w[0-9]+]], w8, #0x3
 ; CHECK-NEXT:  strb [[REG1]], {{\[}}x2{{\]}}
-; CHECK:       and [[REG2:w[0-9]+]], w8, #0x1
-; CHECK-NEXT:  cmp [[REG2]], #0
+; CHECK-NEXT:  tbz w9, #0,
  %1 = trunc i64 %a to i2
  %2 = trunc i64 %b to i1
 ; Force fast-isel to fall back to SDAG.