31 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -debugify-and-strip-all-safe -mtriple arm64-apple-ios -O0 -run-pass=aarch64-postlegalizer-combiner --aarch64postlegalizercombiner-only-enable-rule="overlapping_and" -global-isel -verify-machineinstrs %s -o - | FileCheck %s3# REQUIRES: asserts4 5# Test running the overlapping_and combine post-legalization.6 7...8---9name: test10legalized: true11tracksRegLiveness: true12body: |13 bb.0:14 liveins: $w015 ; CHECK-LABEL: name: test16 ; CHECK: liveins: $w017 ; CHECK-NEXT: {{ $}}18 ; CHECK-NEXT: %copy:_(s32) = COPY $w019 ; CHECK-NEXT: [[C:%[0-9]+]]:_(s32) = G_CONSTANT i32 19220 ; CHECK-NEXT: %and2:_(s32) = G_AND %copy, [[C]]21 ; CHECK-NEXT: $w0 = COPY %and2(s32)22 ; CHECK-NEXT: RET_ReallyLR implicit $w023 %copy:_(s32) = COPY $w024 %cst_neg_64:_(s32) = G_CONSTANT i32 -6425 %and1:_(s32) = G_AND %copy, %cst_neg_6426 %cst_255:_(s32) = G_CONSTANT i32 25527 %and2:_(s32) = G_AND %and1, %cst_25528 $w0 = COPY %and2(s32)29 RET_ReallyLR implicit $w030...31