diff options
author | Arnold Schwaighofer <aschwaighofer@apple.com> | 2017-05-26 18:11:54 +0000 |
---|---|---|
committer | Arnold Schwaighofer <aschwaighofer@apple.com> | 2017-05-26 18:11:54 +0000 |
commit | 634e3203768b7c736c27447592f2470f9bbed287 (patch) | |
tree | 3f5ed24a162305d76ccf19a0cd044914b0f1233c /clang/test/CodeGen/arm-swiftcall.c | |
parent | 1ef2e237bf93f7088944499ada80f8dc55689915 (diff) | |
download | bcm5719-llvm-634e3203768b7c736c27447592f2470f9bbed287.tar.gz bcm5719-llvm-634e3203768b7c736c27447592f2470f9bbed287.zip |
CodeGen: Define Swift's legal vector types for AArch64, ARM
rdar://32401301
llvm-svn: 304017
Diffstat (limited to 'clang/test/CodeGen/arm-swiftcall.c')
-rw-r--r-- | clang/test/CodeGen/arm-swiftcall.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGen/arm-swiftcall.c b/clang/test/CodeGen/arm-swiftcall.c index 5a7e17068b7..f5c33845e2f 100644 --- a/clang/test/CodeGen/arm-swiftcall.c +++ b/clang/test/CodeGen/arm-swiftcall.c @@ -57,6 +57,7 @@ SWIFTCALL void context_error_2(short s, CONTEXT int *self, ERROR float **error) /********************************** LOWERING *********************************/ /*****************************************************************************/ +typedef float float3 __attribute__((ext_vector_type(3))); typedef float float4 __attribute__((ext_vector_type(4))); typedef float float8 __attribute__((ext_vector_type(8))); typedef double double2 __attribute__((ext_vector_type(2))); @@ -1013,3 +1014,10 @@ typedef struct { TEST(struct_vf81) // CHECK-LABEL: define swiftcc { <4 x float>, <4 x float> } @return_struct_vf81() // CHECK-LABEL: define swiftcc void @take_struct_vf81(<4 x float>, <4 x float>) + +typedef struct { + float3 f3; +} struct_v1f3; +TEST(struct_v1f3) +// CHECK-LABEL: define swiftcc { <2 x float>, float } @return_struct_v1f3() +// CHECK-LABEL: define swiftcc void @take_struct_v1f3(<2 x float>, float) |