// RUN: %clang_cc1 -no-opaque-pointers -w -fblocks -ffreestanding -triple i386-pc-linux-gnu -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -w -fblocks -ffreestanding -triple i386-pc-linux-gnu -target-feature +avx -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -w -fblocks -ffreestanding -triple i386-pc-linux-gnu -target-feature +avx512f -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -w -fblocks -ffreestanding -triple i386-pc-linux-mingw -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -w -fblocks -ffreestanding -triple i386-pc-linux-mingw -target-feature +avx -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-opaque-pointers -w -fblocks -ffreestanding -triple i386-pc-linux-mingw -target-feature +avx512f -emit-llvm -o - %s | FileCheck %s
// CHECK-LABEL: define dso_local void @testm128
// CHECK-LABEL: %argp.cur = load i8*, i8** %args, align 4
// CHECK-NEXT: %0 = ptrtoint i8* %argp.cur to i32
// CHECK-NEXT: %1 = add i32 %0, 15
// CHECK-NEXT: %2 = and i32 %1, -16
// CHECK-NEXT: %argp.cur.aligned = inttoptr i32 %2 to i8*
void
// CHECK-LABEL: define dso_local void @testm256
// CHECK-LABEL: %argp.cur = load i8*, i8** %args, align 4
// CHECK-NEXT: %0 = ptrtoint i8* %argp.cur to i32
// CHECK-NEXT: %1 = add i32 %0, 31
// CHECK-NEXT: %2 = and i32 %1, -32
// CHECK-NEXT: %argp.cur.aligned = inttoptr i32 %2 to i8*
void
// CHECK-LABEL: define dso_local void @testm512
// CHECK-LABEL: %argp.cur = load i8*, i8** %args, align 4
// CHECK-NEXT: %0 = ptrtoint i8* %argp.cur to i32
// CHECK-NEXT: %1 = add i32 %0, 63
// CHECK-NEXT: %2 = and i32 %1, -64
// CHECK-NEXT: %argp.cur.aligned = inttoptr i32 %2 to i8*
void
// CHECK-LABEL: define dso_local void @testPastArguments
// CHECK: call void (i32, ...) @testm128(i32 noundef 1, <4 x float> noundef %0)
// CHECK: call void (i32, ...) @testm256(i32 noundef 1, <8 x float> noundef %1)
// CHECK: call void (i32, ...) @testm512(i32 noundef 1, <16 x float> noundef %2)
void