brintos

brintos / llvm-project-archived public Read only

0
0
Text · 590 B · ec3d884 Raw
17 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - -fms-extensions -triple i686-pc-win32 | FileCheck %s2 3// CHECK-LABEL: define dso_local void @test_alloca(4void capture(void *);5void test_alloca(int n) {6  capture(_alloca(n));7  // CHECK: %[[arg:.*]] = alloca i8, i32 %{{.*}}, align 168  // CHECK: call void @capture(ptr noundef %[[arg]])9}10 11// CHECK-LABEL: define dso_local void @test_alloca_with_align(12void test_alloca_with_align(int n) {13  capture(__builtin_alloca_with_align(n, 64));14  // CHECK: %[[arg:.*]] = alloca i8, i32 %{{.*}}, align 815  // CHECK: call void @capture(ptr noundef %[[arg]])16}17