[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / ms-mm-align.c
blobf3ed49dcd5d68d99356fbdf66bf07b927d26475b
1 // RUN: %clang_cc1 -ffreestanding -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 -target-feature +sse \
2 // RUN: -triple i686--windows -emit-llvm %s -o - \
3 // RUN: | FileCheck %s
5 // intrin.h needs size_t, but -ffreestanding prevents us from getting it from
6 // stddef.h. Work around it with this typedef.
7 typedef __SIZE_TYPE__ size_t;
8 #include <intrin.h>
10 void capture_ptr(int* i);
11 void test_mm_align16(int p) {
12 _MM_ALIGN16 int i;
13 capture_ptr(&i);
16 // CHECK: alloca i32, align 16