From 89e735673ae02cbdba08ed6d7b543453cbf34e17 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Mon, 31 May 2010 20:39:10 +0000 Subject: [PATCH] Add a test for the llvm-gcc commit in r90200. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105253 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/2010-05-31-palignr.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/FrontendC/2010-05-31-palignr.c diff --git a/test/FrontendC/2010-05-31-palignr.c b/test/FrontendC/2010-05-31-palignr.c new file mode 100644 index 00000000000..9da3145153f --- /dev/null +++ b/test/FrontendC/2010-05-31-palignr.c @@ -0,0 +1,24 @@ +// RUN: not %llvmgcc -mssse3 -S -o /dev/null %s |& grep "error: mask must be an immediate" +// XFAIL: * +// XTARGET: x86,i386,i686 + +#include + +extern int i; + +int main () +{ +#if defined( __SSSE3__ ) + + typedef int16_t vSInt16 __attribute__ ((__vector_size__ (16))); + + short dtbl[] = {1,2,3,4,5,6,7,8}; + vSInt16 *vdtbl = (vSInt16*) dtbl; + + vSInt16 v0; + v0 = *vdtbl; + v0 = _mm_alignr_epi8(v0, v0, i); + + return 0; +#endif +} -- 2.34.1