1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-- -O0 -run-pass=instruction-select -verify-machineinstrs %s -global-isel-abort=1 -o - | FileCheck %s
7 tracksRegLiveness: true
12 ; CHECK-LABEL: name: redundant_zext_8
15 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr64sp = COPY $x0
16 ; CHECK-NEXT: [[LDRBBui:%[0-9]+]]:gpr32 = LDRBBui [[COPY]], 0 :: (load (s8))
17 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr32all = COPY [[LDRBBui]]
18 ; CHECK-NEXT: $w0 = COPY [[COPY1]]
19 ; CHECK-NEXT: RET_ReallyLR implicit $w0
21 %2:gpr(s8) = G_LOAD %1(p0) :: (load (s8))
22 %3:gpr(s32) = G_ZEXT %2(s8)
24 RET_ReallyLR implicit $w0
28 name: redundant_zext_16
31 tracksRegLiveness: true
36 ; CHECK-LABEL: name: redundant_zext_16
39 ; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr64sp = COPY $x0
40 ; CHECK-NEXT: [[LDRHHui:%[0-9]+]]:gpr32 = LDRHHui [[COPY]], 0 :: (load (s16))
41 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:gpr32all = COPY [[LDRHHui]]
42 ; CHECK-NEXT: $w0 = COPY [[COPY1]]
43 ; CHECK-NEXT: RET_ReallyLR implicit $w0
45 %2:gpr(s16) = G_LOAD %1(p0) :: (load (s16))
46 %3:gpr(s32) = G_ZEXT %2(s16)
48 RET_ReallyLR implicit $w0