summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/GlobalISel/legalize-sextload.mir
blob: 7f568f8d6175d53dc793af4c904c6b6d8a627085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -march=aarch64 -run-pass=legalizer %s -o - -verify-machineinstrs | FileCheck %s
---
name:            test_sextload
body: |
  bb.0.entry:
    liveins: $x0
    ; CHECK-LABEL: name: test_sextload
    ; CHECK: [[COPY:%[0-9]+]]:_(p0) = COPY $x0
    ; CHECK: [[SEXTLOAD:%[0-9]+]]:_(s32) = G_SEXTLOAD [[COPY]](p0) :: (load 1)
    ; CHECK: $w0 = COPY [[SEXTLOAD]](s32)
    %0:_(p0) = COPY $x0
    %1:_(s32) = G_SEXTLOAD %0 :: (load 1)
    $w0 = COPY %1
...
OpenPOWER on IntegriCloud