aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-01-21 00:56:42 +0000
committerChris Lattner <sabre@nondot.org>2007-01-21 00:56:42 +0000
commit3af8c6ee61478cf38d61c1a221d661129d529adf (patch)
tree54be6a9cbf2acad9ad51d1b09bb6483ca5d6273c
parent24d6da5fedcf39891f7d8c5b031c01324b3db545 (diff)
downloadexternal_llvm-3af8c6ee61478cf38d61c1a221d661129d529adf.zip
external_llvm-3af8c6ee61478cf38d61c1a221d661129d529adf.tar.gz
external_llvm-3af8c6ee61478cf38d61c1a221d661129d529adf.tar.bz2
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33416 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CFrontend/2007-01-20-VectorICE.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CFrontend/2007-01-20-VectorICE.c b/test/CFrontend/2007-01-20-VectorICE.c
new file mode 100644
index 0000000..c2dcdef
--- /dev/null
+++ b/test/CFrontend/2007-01-20-VectorICE.c
@@ -0,0 +1,11 @@
+// RUN: %llvmgcc %s -S -o -
+
+typedef float __m128 __attribute__((__vector_size__(16)));
+typedef long long __v2di __attribute__((__vector_size__(16)));
+typedef int __v4si __attribute__((__vector_size__(16)));
+
+__v2di bar(void);
+void foo(int X, __v4si *P) {
+ *P = X == 2 ? bar() : bar();
+}
+