| 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 |
| 4 |
|
| 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> |
| 9 |
|
| 10 |
void capture_ptr(int* i); |
| 11 |
void test_mm_align16(int p) { |
| 12 |
_MM_ALIGN16 int i; |
| 13 |
capture_ptr(&i); |
| 14 |
} |
| 15 |
|
| 16 |
// CHECK: alloca i32, align 16 |