1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -run-pass=aarch64-postlegalizer-combiner -global-isel -verify-machineinstrs %s -o - | FileCheck %s
5 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
6 target triple = "aarch64--"
7 define void @test_zeroext(ptr %addr) {
11 define void @test_s32_to_s64(ptr %addr) {
23 ; CHECK-LABEL: name: test_zeroext
26 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
27 ; CHECK-NEXT: [[ZEXTLOAD:%[0-9]+]]:_(s32) = G_ZEXTLOAD [[COPY]](p0) :: (load (s8) from %ir.addr)
28 ; CHECK-NEXT: $w0 = COPY [[ZEXTLOAD]](s32)
30 %1:_(s8) = G_LOAD %0 :: (load (s8) from %ir.addr)
41 ; CHECK-LABEL: name: test_s32_to_s64
44 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
45 ; CHECK-NEXT: [[LOAD:%[0-9]+]]:_(s64) = G_LOAD [[COPY]](p0) :: (load (s32) from %ir.addr)
46 ; CHECK-NEXT: $x0 = COPY [[LOAD]](s64)
48 %1:_(s32) = G_LOAD %0 :: (load (s32) from %ir.addr)
49 %2:_(s64) = G_ANYEXT %1