diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-16 18:47:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-16 18:47:51 +0000 |
commit | c5bf28a812871e71b06fe4f6d52c8c641dbca33a (patch) | |
tree | 5693805850e9afa5a110621ba9a41f0d073728bc | |
parent | 4bb189507281af0da8aff91743b5198acbf2398b (diff) |
New testcase, the new CFE compiles this into insertelement instructions, the
old one crashes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26794 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/CFrontend/2006-03-16-VectorCtor.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CFrontend/2006-03-16-VectorCtor.c b/test/CFrontend/2006-03-16-VectorCtor.c new file mode 100644 index 0000000000..38445144f3 --- /dev/null +++ b/test/CFrontend/2006-03-16-VectorCtor.c @@ -0,0 +1,11 @@ +// Passes with the new CFE. +// RUN: %llvmgcc %s -S -o - +// XFAIL: * + +typedef int v4si __attribute__ ((__vector_size__ (16))); +void test(v4si *P, v4si *Q, float X) { + *P = (v4si){ X, X, X, X } * *Q; +} + +v4si G = (v4si){ 0.1, 1.2, 4.2, 17.2 }; + |