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 | baace007a3240ed7bdec3efdd2c524adc40e1bdf (patch) | |
| tree | 5badc0f07c6fcea9b09859f22e27468ea623911a | |
| parent | 1ec0e4233e932fb4140ee82d17bc62e0edfc0ad0 (diff) | |
| download | bcm5719-llvm-baace007a3240ed7bdec3efdd2c524adc40e1bdf.tar.gz bcm5719-llvm-baace007a3240ed7bdec3efdd2c524adc40e1bdf.zip | |
Added a test case for parameter passing of vector values.
llvm-svn: 28567
| -rw-r--r-- | llvm/test/Regression/CodeGen/X86/vec_call.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/X86/vec_call.ll b/llvm/test/Regression/CodeGen/X86/vec_call.ll new file mode 100644 index 00000000000..9bbff18de9a --- /dev/null +++ b/llvm/test/Regression/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>) |

