aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Bitcode/inalloca.ll
blob: 294f44e61e437aef6d204ca97897771ba7efc836 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
; RUN: verify-uselistorder < %s

; inalloca should roundtrip.

define void @foo(i32* inalloca(i32) %args) {
  ret void
}
; CHECK-LABEL: define void @foo(ptr inalloca(i32) %args)

define void @bar() {
  ; Use the maximum alignment, since we stuff our bit with alignment.
  %args = alloca inalloca i32, align 4294967296
  call void @foo(i32* inalloca(i32) %args)
  ret void
}
; CHECK-LABEL: define void @bar() {
; CHECK: %args = alloca inalloca i32, align 4294967296
; CHECK: call void @foo(ptr inalloca(i32) %args)