1 // RUN: %clang_cc1 -triple i686-linux-gnu -target-cpu i686 -emit-llvm %s -o - | FileCheck %s
3 typedef signed long long V2LLi
__attribute__((vector_size(16)));
4 typedef signed long long V4LLi
__attribute__((vector_size(32)));
11 // Make sure return type forces a min-legal-width
13 return (V2LLi
){ 0, 0 };
17 return (V4LLi
){ 0, 0 };
20 // Make sure return type of called function forces a min-legal-width
23 tmp_V2LLi
= ret_128();
28 tmp_V4LLi
= ret_256();
31 // Make sure arg type of called function forces a min-legal-width
42 // Make sure arg type of our function forces a min-legal-width
51 // CHECK: {{.*}}@foo{{.*}} #0
52 // CHECK: {{.*}}@goo{{.*}} #1
53 // CHECK: {{.*}}@hoo{{.*}} #0
54 // CHECK: {{.*}}@joo{{.*}} #1
55 // CHECK: {{.*}}@koo{{.*}} #0
56 // CHECK: {{.*}}@loo{{.*}} #1
57 // CHECK: {{.*}}@moo{{.*}} #0
58 // CHECK: {{.*}}@noo{{.*}} #1
60 // CHECK: #0 = {{.*}}"min-legal-vector-width"="128"
61 // CHECK: #1 = {{.*}}"min-legal-vector-width"="256"