1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -mtriple=riscv32 -run-pass=legalizer %s -o - | FileCheck %s
3 # RUN: llc -mtriple=riscv64 -run-pass=legalizer %s -o - | FileCheck %s
11 ; CHECK-LABEL: name: test_va_copy
12 ; CHECK: liveins: $x10, $x11
14 ; CHECK-NEXT: [[COPY:%[0-9]+]]:_(p0) = COPY $x10
15 ; CHECK-NEXT: [[COPY1:%[0-9]+]]:_(p0) = COPY $x11
16 ; CHECK-NEXT: [[LOAD:%[0-9]+]]:_(p0) = G_LOAD [[COPY1]](p0) :: (load (p0))
17 ; CHECK-NEXT: G_STORE [[LOAD]](p0), [[COPY]](p0) :: (store (p0))
18 ; CHECK-NEXT: PseudoRET
21 G_INTRINSIC_W_SIDE_EFFECTS intrinsic(@llvm.va_copy), %0(p0), %1(p0)