mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
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
This commit is contained in:
parent
6c41ad8c9a
commit
89e735673a
24
test/FrontendC/2010-05-31-palignr.c
Normal file
24
test/FrontendC/2010-05-31-palignr.c
Normal file
@ -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 <tmmintrin.h>
|
||||
|
||||
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user