diff options
author | dim <dim@FreeBSD.org> | 2015-02-19 20:57:58 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2015-02-19 20:57:58 +0000 |
commit | dfd258880cb7da4868d2b1a3679779bc4ece5314 (patch) | |
tree | b0d1eaed14959a7722ff246ffa303348922e9fb5 /test | |
parent | ff28d95d1f024411955913aaa68c17f2b09c46fd (diff) | |
download | FreeBSD-src-dfd258880cb7da4868d2b1a3679779bc4ece5314.zip FreeBSD-src-dfd258880cb7da4868d2b1a3679779bc4ece5314.tar.gz |
Vendor import of clang RELEASE_360/rc4 tag r229772 (effectively, 3.6.0 RC4):
https://llvm.org/svn/llvm-project/cfe/tags/RELEASE_360/rc4@229772
Diffstat (limited to 'test')
-rw-r--r-- | test/CodeGen/x86_64-arguments.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/x86_64-arguments.c b/test/CodeGen/x86_64-arguments.c index 5d01d3b..e82e7b0 100644 --- a/test/CodeGen/x86_64-arguments.c +++ b/test/CodeGen/x86_64-arguments.c @@ -184,6 +184,28 @@ struct v4f32wrapper f27(struct v4f32wrapper X) { return X; } +// PR22563 - We should unwrap simple structs and arrays to pass +// and return them in the appropriate vector registers if possible. + +typedef float v8f32 __attribute__((__vector_size__(32))); +struct v8f32wrapper { + v8f32 v; +}; + +struct v8f32wrapper f27a(struct v8f32wrapper X) { + // AVX-LABEL: define <8 x float> @f27a(<8 x float> %X.coerce) + return X; +} + +struct v8f32wrapper_wrapper { + v8f32 v[1]; +}; + +struct v8f32wrapper_wrapper f27b(struct v8f32wrapper_wrapper X) { + // AVX-LABEL: define <8 x float> @f27b(<8 x float> %X.coerce) + return X; +} + // rdar://5711709 struct f28c { double x; |