Reid Kleckner | 9b7c9e8 | 2014-07-16 01:34:27 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llvm-dis | FileCheck %s |
Duncan P. N. Exon Smith | 9082385 | 2014-08-19 21:08:27 +0000 | [diff] [blame] | 2 | ; RUN: verify-uselistorder < %s |
Reid Kleckner | 9b7c9e8 | 2014-07-16 01:34:27 +0000 | [diff] [blame] | 3 | |
| 4 | ; inalloca should roundtrip. |
| 5 | |
Nico Weber | 01c9b9c | 2021-03-28 13:02:52 -0400 | [diff] [blame^] | 6 | define void @foo(i32* inalloca %args) { |
Reid Kleckner | 9b7c9e8 | 2014-07-16 01:34:27 +0000 | [diff] [blame] | 7 | ret void |
| 8 | } |
Nico Weber | 01c9b9c | 2021-03-28 13:02:52 -0400 | [diff] [blame^] | 9 | ; CHECK-LABEL: define void @foo(i32* inalloca %args) |
Reid Kleckner | 9b7c9e8 | 2014-07-16 01:34:27 +0000 | [diff] [blame] | 10 | |
| 11 | define void @bar() { |
| 12 | ; Use the maximum alignment, since we stuff our bit with alignment. |
| 13 | %args = alloca inalloca i32, align 536870912 |
Nico Weber | 01c9b9c | 2021-03-28 13:02:52 -0400 | [diff] [blame^] | 14 | call void @foo(i32* inalloca %args) |
Reid Kleckner | 9b7c9e8 | 2014-07-16 01:34:27 +0000 | [diff] [blame] | 15 | ret void |
| 16 | } |
| 17 | ; CHECK-LABEL: define void @bar() { |
| 18 | ; CHECK: %args = alloca inalloca i32, align 536870912 |
Nico Weber | 01c9b9c | 2021-03-28 13:02:52 -0400 | [diff] [blame^] | 19 | ; CHECK: call void @foo(i32* inalloca %args) |