// RUN: %clang_cc1 -no-opaque-pointers %s -triple x86_64-unknown-linux-gnu -emit-llvm -target-feature +avx512f -o - | FileCheck %s
typedef long long __m128i ;
typedef long long __m256i ;
typedef long long __m512i ;
// CHECK: define{{.*}} <2 x i64> @testXMMout(<2 x i64>* noundef %p) #0
__m128i
// CHECK: define{{.*}} <4 x i64> @testYMMout(<4 x i64>* noundef %p) #1
__m256i
// CHECK: define{{.*}} <8 x i64> @testZMMout(<8 x i64>* noundef %p) #2
__m512i
// CHECK: define{{.*}} void @testXMMin(<2 x i64> noundef %xmm0, <2 x i64>* noundef %p) #0
void
// CHECK: define{{.*}} void @testYMMin(<4 x i64> noundef %ymm0, <4 x i64>* noundef %p) #1
void
// CHECK: define{{.*}} void @testZMMin(<8 x i64> noundef %zmm0, <8 x i64>* noundef %p) #2
void
// CHECK: attributes #0 = {{.*}}"min-legal-vector-width"="128"
// CHECK: attributes #1 = {{.*}}"min-legal-vector-width"="256"
// CHECK: attributes #2 = {{.*}}"min-legal-vector-width"="512"