xref: /aosp_15_r20/external/clang/test/CodeGen/ms-mm-align.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // RUN: %clang_cc1 -ffreestanding -fms-extensions -fms-compatibility -fms-compatibility-version=17.00 -target-feature +sse \
2*67e74705SXin Li // RUN:         -triple i686--windows -emit-llvm %s -o - \
3*67e74705SXin Li // RUN:         | FileCheck %s -check-prefix CHECK
4*67e74705SXin Li 
5*67e74705SXin Li // intrin.h needs size_t, but -ffreestanding prevents us from getting it from
6*67e74705SXin Li // stddef.h.  Work around it with this typedef.
7*67e74705SXin Li typedef __SIZE_TYPE__ size_t;
8*67e74705SXin Li #include <intrin.h>
9*67e74705SXin Li 
10*67e74705SXin Li void capture_ptr(int* i);
test_mm_align16(int p)11*67e74705SXin Li void test_mm_align16(int p) {
12*67e74705SXin Li   _MM_ALIGN16 int i;
13*67e74705SXin Li   capture_ptr(&i);
14*67e74705SXin Li }
15*67e74705SXin Li 
16*67e74705SXin Li // CHECK: alloca i32, align 16
17