reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
# RUN: llc -O0 %s -o - | FileCheck %s

# This test checks the expansion of the 16-bit LDWRdPtr pseudo instruction.

--- |
  target triple = "avr--"
  define void @test_ldwrdptr() {
  entry:
    ret void
  }
...

---
name:            test_ldwrdptr
tracksRegLiveness: true
body: |
  bb.0.entry:

    ; CHECK-LABEL: test_ldwrdptr

    ; CHECK:      ld [[SCRATCH:r[0-9]+]], Z
    ; CHECK-NEXT: push [[SCRATCH]]
    ; CHECK-NEXT: ldd [[SCRATCH]], Z+1
    ; CHECK-NEXT: mov r31, [[SCRATCH]]
    ; CHECK-NEXT: pop r30

    early-clobber $r31r30 = LDWRdPtr undef $r31r30
...