[llvm] r311389 - [AArch64] Restore the test of conditional branch fusion

Evandro Menezes via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 14:57:43 PDT 2017


Author: evandro
Date: Mon Aug 21 14:57:43 2017
New Revision: 311389

URL: http://llvm.org/viewvc/llvm-project?rev=311389&view=rev
Log:
[AArch64] Restore the test of conditional branch fusion

Restore the functionality of this test that was broken by
https://reviews.llvm.org/rL306144.

Differential revision: https://reviews.llvm.org/D36807

Modified:
    llvm/trunk/test/CodeGen/AArch64/misched-fusion.ll

Modified: llvm/trunk/test/CodeGen/AArch64/misched-fusion.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AArch64/misched-fusion.ll?rev=311389&r1=311388&r2=311389&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AArch64/misched-fusion.ll (original)
+++ llvm/trunk/test/CodeGen/AArch64/misched-fusion.ll Mon Aug 21 14:57:43 2017
@@ -1,6 +1,6 @@
-; RUN: llc -o - %s -mattr=+arith-bcc-fusion | FileCheck --check-prefix=FUSEBCC %s
-; RUN: llc -o - %s -mattr=+arith-cbz-fusion | FileCheck --check-prefix=FUSECBZ %s
-; RUN: llc -o - %s -mcpu=cyclone            | FileCheck --check-prefix=FUSEBCC --check-prefix=FUSECBZ %s
+; RUN: llc -o - %s -mtriple=aarch64-unknown -aarch64-enable-cond-br-tune=false -mattr=+arith-bcc-fusion | FileCheck %s --check-prefix=FUSEBCC
+; RUN: llc -o - %s -mtriple=aarch64-unknown -aarch64-enable-cond-br-tune=false -mattr=+arith-cbz-fusion | FileCheck %s --check-prefix=FUSECBZ
+; RUN: llc -o - %s -mtriple=aarch64-unknown -aarch64-enable-cond-br-tune=false -mcpu=cyclone            | FileCheck %s --check-prefix=FUSEBCC --check-prefix=FUSECBZ
 
 target triple = "aarch64-unknown"
 
@@ -27,8 +27,8 @@ exit:
 
 ; Make sure sub is scheduled in front of cbnz
 ; FUSECBZ-LABEL: test_sub_cbz:
-; FUSECBZ: subs [[SUBRES:w[0-9]+]], w0, #13
-; FUSECBZ: b.ne {{.?LBB[0-9_]+}}
+; FUSECBZ: sub [[R:w[0-9]+]], {{w[0-9]+}}, #13
+; FUSECBZ-NEXT: cbnz [[R]], {{.?LBB[0-9_]+}}
 define void @test_sub_cbz(i32 %a0, i32 %a1) {
 entry:
   ; except for the fusion opportunity the sub/add should be equal so the




More information about the llvm-commits mailing list