52 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -run-pass=aarch64-postlegalizer-combiner -global-isel -verify-machineinstrs %s -o - | FileCheck %s3 4--- |5 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"6 target triple = "aarch64--"7 define void @test_zeroext(ptr %addr) {8 entry:9 ret void10 }11 define void @test_s32_to_s64(ptr %addr) {12 entry:13 ret void14 }15...16 17---18name: test_zeroext19legalized: true20body: |21 bb.0.entry:22 liveins: $x023 ; CHECK-LABEL: name: test_zeroext24 ; CHECK: liveins: $x025 ; CHECK-NEXT: {{ $}}26 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x027 ; CHECK-NEXT: [[ZEXTLOAD:%[0-9]+]]:_(s32) = G_ZEXTLOAD [[COPY]](p0) :: (load (s8) from %ir.addr)28 ; CHECK-NEXT: $w0 = COPY [[ZEXTLOAD]](s32)29 %0:_(p0) = COPY $x030 %1:_(s8) = G_LOAD %0 :: (load (s8) from %ir.addr)31 %2:_(s32) = G_ZEXT %132 $w0 = COPY %233...34 35---36name: test_s32_to_s6437legalized: true38body: |39 bb.0.entry:40 liveins: $x041 ; CHECK-LABEL: name: test_s32_to_s6442 ; CHECK: liveins: $x043 ; CHECK-NEXT: {{ $}}44 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x045 ; CHECK-NEXT: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load (s32) from %ir.addr)46 ; CHECK-NEXT: $x0 = COPY [[LOAD]](s64)47 %0:_(p0) = COPY $x048 %1:_(s32) = G_LOAD %0 :: (load (s32) from %ir.addr)49 %2:_(s64) = G_ANYEXT %150 $x0 = COPY %251...52