1 ; RUN: llvm-as < %s | llvm-dis | FileCheck %s
3 target datalayout = "A0"
4 ; CHECK: target datalayout = "A0"
7 ; CHECK: %alloca_scalar_no_align = alloca i32, align 4
8 ; CHECK-NEXT: %alloca_scalar_align4 = alloca i32, align 4
9 ; CHECK-NEXT: %alloca_scalar_no_align_metadata = alloca i32, align 4, !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, align 4
12 ; CHECK-NEXT: %alloca_inalloca_scalar_align4_metadata = alloca inalloca i32, align 4, !foo !0
13 define 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