1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=aarch64-- -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
5 target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
7 define void @aextload_s32_from_s16(ptr %addr) { ret void }
9 define void @aextload_s32_from_s16_not_combined(ptr %addr) { ret void }
13 name: aextload_s32_from_s16
21 ; CHECK-LABEL: name: aextload_s32_from_s16
22 ; CHECK: [[COPY:%[0-9]+]]:gpr64sp = COPY $x0
23 ; CHECK: [[T0:%[0-9]+]]:gpr32 = LDRHHui [[COPY]], 0 :: (load (s16) from %ir.addr)
24 ; CHECK: $w0 = COPY [[T0]]
26 %1:gpr(s32) = G_LOAD %0 :: (load (s16) from %ir.addr)
31 name: aextload_s32_from_s16_not_combined
39 ; CHECK-LABEL: name: aextload_s32_from_s16
40 ; CHECK: [[COPY:%[0-9]+]]:gpr64sp = COPY $x0
41 ; CHECK: [[T0:%[0-9]+]]:gpr32 = LDRHHui [[COPY]], 0 :: (load (s16) from %ir.addr)
42 ; CHECK: [[T1:%[0-9]+]]:gpr32all = COPY [[T0]]
43 ; CHECK: $w0 = COPY [[T1]]
45 %1:gpr(s16) = G_LOAD %0 :: (load (s16) from %ir.addr)
46 %2:gpr(s32) = G_ANYEXT %1