1; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mattr=cmp-bcc-fusion | FileCheck %s 2; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-a77 | FileCheck %s 3; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-a78 | FileCheck %s 4; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-a78ae | FileCheck %s 5; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-a78c | FileCheck %s 6; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-a710 | FileCheck %s 7; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-x715 | FileCheck %s 8; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-x720 | FileCheck %s 9; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-x720ae | FileCheck %s 10; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-x1 | FileCheck %s 11; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=cortex-x2 | FileCheck %s 12; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=neoverse-v2 | FileCheck %s 13; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=ampere1 | FileCheck %s 14; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=ampere1a | FileCheck %s 15; RUN: llc %s -o - -O0 -mtriple=aarch64-unknown -mcpu=ampere1b | FileCheck %s 16 17 18define void @test_cmp_bcc_fusion(i32 %x, i32 %y, i32* %arr) { 19entry: 20 %cmp = icmp eq i32 %x, %y 21 store i32 %x, i32* %arr, align 4 22 br i1 %cmp, label %if_true, label %if_false 23 24if_true: 25 ret void 26 27if_false: 28 ret void 29} 30 31; CHECK-LABEL: test_cmp_bcc_fusion: 32; CHECK: str {{w[0-9]}}, [{{x[0-9]}}] 33; CHECK-NEXT: subs {{w[0-9]}}, {{w[0-9]}}, {{w[0-9]}} 34; CHECK-NEXT: b.ne .LBB0_2 35; CHECK-NEXT: b .LBB0_1 36