blob: dc59b6acb42141de45d486742004ae11541cb67f [file] [log] [blame]
Tim Northovera7d90af2019-10-04 12:29:32 +00001; RUN: llc -mtriple=thumbv7k-apple-watchos %s -o - | FileCheck %s
2
3; r7 is FP on Darwin, and should be preserved even if we don't create a new
4; frame record for this leaf function. So make huge register pressure to try &
5; tempt LLVM to use it.
6define void @foo([16 x i32]* %ptr) {
7; CHECK-LABEL: foo:
8; CHECK: push.w
9; CHECK: .cfi_offset r7
10; CHECK-NOT: r7
11; CHECK: pop.w
12 %val = load volatile [16 x i32], [16 x i32]* %ptr
13 store volatile [16 x i32] %val, [16 x i32]* %ptr
14 ret void
15}