diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-05-30 20:37:00 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-05-30 20:37:00 +0000 |
commit | 1fa57550c02327fb8ad29a7d7ffd685bf03e7e35 (patch) | |
tree | 72c5146296ee16324e47e1f75411bb6ae465be4a | |
parent | 01ad240dc505437b6f740c3d17d95e733a9124d2 (diff) | |
download | external_llvm-1fa57550c02327fb8ad29a7d7ffd685bf03e7e35.zip external_llvm-1fa57550c02327fb8ad29a7d7ffd685bf03e7e35.tar.gz external_llvm-1fa57550c02327fb8ad29a7d7ffd685bf03e7e35.tar.bz2 |
Added a test case for parameter passing of vector values.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28567 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CodeGen/X86/vec_call.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_call.ll b/test/CodeGen/X86/vec_call.ll new file mode 100644 index 0000000..9bbff18 --- /dev/null +++ b/test/CodeGen/X86/vec_call.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep 'subl.*60' +; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep 'movdqa.*32' + +void %test() { + tail call void %xx( int 1, int 2, int 3, int 4, int 5, int 6, int 7, <2 x long> cast (<4 x int> < int 4, int 3, int 2, int 1 > to <2 x long>), <2 x long> cast (<4 x int> < int 8, int 7, int 6, int 5 > to <2 x long>), <2 x long> cast (<4 x int> < int 6, int 4, int 2, int 0 > to <2 x long>), <2 x long> cast (<4 x int> < int 8, int 4, int 2, int 1 > to <2 x long>), <2 x long> cast (<4 x int> < int 0, int 1, int 3, int 9 > to <2 x long>) ) + ret void +} + +declare void %xx(int, int, int, int, int, int, int, <2 x long>, <2 x long>, <2 x long>, <2 x long>, <2 x long>) |