summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEvandro Menezes <e.menezes@samsung.com>2017-08-21 21:57:43 +0000
committerEvandro Menezes <e.menezes@samsung.com>2017-08-21 21:57:43 +0000
commitbc11ca1a3167965023c08fa9b2aeb36a9efa4402 (patch)
treee2b005291fc4ea1107bab615e0ee5db48f7a78bd /llvm
parentef1fc5ae89e6fdb1c94022506ca8188782548852 (diff)
downloadbcm5719-llvm-bc11ca1a3167965023c08fa9b2aeb36a9efa4402.tar.gz
bcm5719-llvm-bc11ca1a3167965023c08fa9b2aeb36a9efa4402.zip
[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 llvm-svn: 311389
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/CodeGen/AArch64/misched-fusion.ll10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/AArch64/misched-fusion.ll b/llvm/test/CodeGen/AArch64/misched-fusion.ll
index 59c3583e3d1..19dfd8515c4 100644
--- a/llvm/test/CodeGen/AArch64/misched-fusion.ll
+++ b/llvm/test/CodeGen/AArch64/misched-fusion.ll
@@ -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
OpenPOWER on IntegriCloud