[llvm-commits] [llvm] r62969 - /llvm/trunk/test/FrontendC/2009-01-25-NoSSE.c

Torok Edwin edwintorok at gmail.com
Sun Jan 25 10:00:06 PST 2009


Author: edwin
Date: Sun Jan 25 12:00:06 2009
New Revision: 62969

URL: http://llvm.org/viewvc/llvm-project?rev=62969&view=rev
Log:
testcase for llvm-gcc part of PR3402.

Added:
    llvm/trunk/test/FrontendC/2009-01-25-NoSSE.c

Added: llvm/trunk/test/FrontendC/2009-01-25-NoSSE.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2009-01-25-NoSSE.c?rev=62969&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/2009-01-25-NoSSE.c (added)
+++ llvm/trunk/test/FrontendC/2009-01-25-NoSSE.c Sun Jan 25 12:00:06 2009
@@ -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);
+}
+





More information about the llvm-commits mailing list