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
; RUN: llc -mtriple=thumbv7k-apple-watchos %s -o - | FileCheck %s

; r7 is FP on Darwin, and should be preserved even if we don't create a new
; frame record for this leaf function. So make huge register pressure to try &
; tempt LLVM to use it.
define void @foo([16 x i32]* %ptr) {
; CHECK-LABEL: foo:
; CHECK: push.w
; CHECK: .cfi_offset r7
; CHECK-NOT: r7
; CHECK: pop.w
  %val = load volatile [16 x i32], [16 x i32]* %ptr
  store volatile [16 x i32] %val, [16 x i32]* %ptr
  ret void
}