blob: 84abe176d65e992a6af8e0f6d27a801c4e5ffbce [file] [log] [blame]
Reid Kleckner9b7c9e82014-07-16 01:34:27 +00001; RUN: llvm-as < %s | llvm-dis | FileCheck %s
Duncan P. N. Exon Smith90823852014-08-19 21:08:27 +00002; RUN: verify-uselistorder < %s
Reid Kleckner9b7c9e82014-07-16 01:34:27 +00003
4; inalloca should roundtrip.
5
Nico Weber01c9b9c2021-03-28 13:02:52 -04006define void @foo(i32* inalloca %args) {
Reid Kleckner9b7c9e82014-07-16 01:34:27 +00007 ret void
8}
Nico Weber01c9b9c2021-03-28 13:02:52 -04009; CHECK-LABEL: define void @foo(i32* inalloca %args)
Reid Kleckner9b7c9e82014-07-16 01:34:27 +000010
11define void @bar() {
12 ; Use the maximum alignment, since we stuff our bit with alignment.
13 %args = alloca inalloca i32, align 536870912
Nico Weber01c9b9c2021-03-28 13:02:52 -040014 call void @foo(i32* inalloca %args)
Reid Kleckner9b7c9e82014-07-16 01:34:27 +000015 ret void
16}
17; CHECK-LABEL: define void @bar() {
18; CHECK: %args = alloca inalloca i32, align 536870912
Nico Weber01c9b9c2021-03-28 13:02:52 -040019; CHECK: call void @foo(i32* inalloca %args)