llvm/llvm/test/CodeGen/AArch64/GlobalISel/legalize-intrinsic-get-dynamic-area-offset.mir

# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py

# RUN:llc %s -verify-machineinstrs -mtriple=aarch64-unknown-unknown -run-pass=legalizer -o - | FileCheck %s

...
---
name:            test_64
alignment:       4
tracksRegLiveness: true
machineFunctionInfo: {}
body:             |
  bb.0:
    liveins:
    ; CHECK-LABEL: name: test_64
    ; CHECK: %v:_(s64) = G_CONSTANT i64 0
    ; CHECK: $x0 = COPY %v(s64)
    ; CHECK: RET_ReallyLR implicit $x0
    %v:_(s64) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.get.dynamic.area.offset)
    $x0 = COPY %v(s64)
    RET_ReallyLR implicit $x0

...
---
name:            test_32
alignment:       4
tracksRegLiveness: true
machineFunctionInfo: {}
body:             |
  bb.0:
    liveins:
    ; CHECK-LABEL: name: test_32
    ; CHECK: %v:_(s32) = G_CONSTANT i32 0
    ; CHECK: $w0 = COPY %v(s32)
    ; CHECK: RET_ReallyLR implicit $w0
    %v:_(s32) = G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.get.dynamic.area.offset)
    $w0 = COPY %v(s32)
    RET_ReallyLR implicit $w0

...