This is passing for us. Should it have been reenabled?
[oota-llvm.git] / test / FrontendC / 2009-01-25-NoSSE.c
1 // RUN: $llvmgcc -m64 -O1 -march=core2 -mno-sse %s -S -o - | not grep xmm
2 // PR3402
3 // This is a test for x86/x86-64, add your target below if it FAILs.
4 // XFAIL: alpha|ia64|arm|powerpc|sparc 
5
6 typedef unsigned long __kernel_size_t;
7 typedef __kernel_size_t size_t;
8 void *memset(void *s, int c, size_t n);
9
10 typedef unsigned char cc_t;
11 typedef unsigned int speed_t;
12 typedef unsigned int tcflag_t;
13
14 struct ktermios {
15  tcflag_t c_iflag;
16  tcflag_t c_oflag;
17  tcflag_t c_cflag;
18  tcflag_t c_lflag;
19  cc_t c_line;
20  cc_t c_cc[19];
21  speed_t c_ispeed;
22  speed_t c_ospeed;
23 };
24 void bar(struct ktermios*);
25 void foo()
26 {
27     struct ktermios termios;
28     memset(&termios, 0, sizeof(termios));
29     bar(&termios);
30 }
31