• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2
3target datalayout = "A0"
4; CHECK: target datalayout = "A0"
5
6
7; CHECK: %alloca_scalar_no_align = alloca i32
8; CHECK-NEXT: %alloca_scalar_align4 = alloca i32, align 4
9; CHECK-NEXT: %alloca_scalar_no_align_metadata = alloca i32, !foo !0
10; CHECK-NEXT: %alloca_scalar_align4_metadata = alloca i32, align 4, !foo !0
11; CHECK-NEXT: %alloca_inalloca_scalar_no_align = alloca inalloca i32
12; CHECK-NEXT: %alloca_inalloca_scalar_align4_metadata = alloca inalloca i32, align 4, !foo !0
13define void @use_alloca() {
14  %alloca_scalar_no_align = alloca i32, addrspace(0)
15  %alloca_scalar_align4 = alloca i32, align 4, addrspace(0)
16  %alloca_scalar_no_align_metadata = alloca i32, addrspace(0), !foo !0
17  %alloca_scalar_align4_metadata = alloca i32, align 4, addrspace(0), !foo !0
18  %alloca_inalloca_scalar_no_align = alloca inalloca i32, addrspace(0)
19  %alloca_inalloca_scalar_align4_metadata = alloca inalloca i32, align 4, addrspace(0), !foo !0
20
21  ret void
22}
23
24!0 = !{}
25