aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-01-25 18:00:06 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-01-25 18:00:06 +0000
commita10b879b4cbdc95206ff37b8a75cf68f453e9255 (patch)
tree119823625605061076e15e7035bb213c0f5fb3e6 /test
parent7f1d5252c719ec57a9cba08256770e8b71ba624a (diff)
downloadexternal_llvm-a10b879b4cbdc95206ff37b8a75cf68f453e9255.zip
external_llvm-a10b879b4cbdc95206ff37b8a75cf68f453e9255.tar.gz
external_llvm-a10b879b4cbdc95206ff37b8a75cf68f453e9255.tar.bz2
testcase for llvm-gcc part of PR3402.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/FrontendC/2009-01-25-NoSSE.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/FrontendC/2009-01-25-NoSSE.c b/test/FrontendC/2009-01-25-NoSSE.c
new file mode 100644
index 0000000..1585f4b
--- /dev/null
+++ b/test/FrontendC/2009-01-25-NoSSE.c
@@ -0,0 +1,30 @@
+// RUN: $llvmgcc -m64 -O1 -march=core2 -mno-sse %s -S -o - | not grep xmm
+// PR3402
+// This is a test for x86/x86-64, add your target below if it FAILs.
+// XFAIL: alpha|ia64|arm|powerpc|sparc
+typedef unsigned long __kernel_size_t;
+typedef __kernel_size_t size_t;
+void *memset(void *s, int c, size_t n);
+
+typedef unsigned char cc_t;
+typedef unsigned int speed_t;
+typedef unsigned int tcflag_t;
+
+struct ktermios {
+ tcflag_t c_iflag;
+ tcflag_t c_oflag;
+ tcflag_t c_cflag;
+ tcflag_t c_lflag;
+ cc_t c_line;
+ cc_t c_cc[19];
+ speed_t c_ispeed;
+ speed_t c_ospeed;
+};
+void bar(struct ktermios*);
+void foo()
+{
+ struct ktermios termios;
+ memset(&termios, 0, sizeof(termios));
+ bar(&termios);
+}
+