Tim Northover | 00ed996 | 2014-03-29 10:18:08 +0000 | [diff] [blame] | 1 | ; RUN: llc -mtriple=arm64-apple-ios7.0 -o - %s | FileCheck %s |
| 2 | |
| 3 | @global = global [20 x i64] zeroinitializer, align 8 |
| 4 | |
| 5 | ; The following function has enough locals to need some restoring, but not a |
| 6 | ; frame record. In an intermediate frame refactoring, prologue and epilogue were |
| 7 | ; inconsistent about how much to move SP. |
| 8 | define void @test_stack_no_frame() { |
| 9 | ; CHECK: test_stack_no_frame |
| 10 | ; CHECK: sub sp, sp, #[[STACKSIZE:[0-9]+]] |
| 11 | %local = alloca [20 x i64] |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 12 | %val = load volatile [20 x i64], [20 x i64]* @global, align 8 |
Tim Northover | 00ed996 | 2014-03-29 10:18:08 +0000 | [diff] [blame] | 13 | store volatile [20 x i64] %val, [20 x i64]* %local, align 8 |
| 14 | |
David Blaikie | a79ac14 | 2015-02-27 21:17:42 +0000 | [diff] [blame] | 15 | %val2 = load volatile [20 x i64], [20 x i64]* %local, align 8 |
Tim Northover | 00ed996 | 2014-03-29 10:18:08 +0000 | [diff] [blame] | 16 | store volatile [20 x i64] %val2, [20 x i64]* @global, align 8 |
| 17 | |
| 18 | ; CHECK: add sp, sp, #[[STACKSIZE]] |
| 19 | ret void |
| 20 | } |