1# RUN: llc -O0 -run-pass=legalizer %s -o - -verify-machineinstrs | FileCheck %s
2
3--- |
4  target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
5  target triple = "aarch64--"
6  define void @test_extload(i8* %addr) {
7  entry:
8    ret void
9  }
10...
11
12---
13name:            test_extload
14body: |
15  bb.0.entry:
16    liveins: $x0
17    ; CHECK-LABEL: name: test_extload
18    ; CHECK: [[T0:%[0-9]+]]:_(p0) = COPY $x0
19    ; CHECK: [[T1:%[0-9]+]]:_(s32) = G_LOAD [[T0]](p0) :: (load 1 from %ir.addr)
20    ; CHECK: $w0 = COPY [[T1]](s32)
21    %0:_(p0) = COPY $x0
22    %1:_(s32) = G_LOAD %0 :: (load 1 from %ir.addr)
23    $w0 = COPY %1
24...
25