[llvm-commits] [llvm-gcc-4.2] r57301 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c
Dale Johannesen
dalej at apple.com
Wed Oct 8 10:55:52 PDT 2008
Author: johannes
Date: Wed Oct 8 12:55:52 2008
New Revision: 57301
URL: http://llvm.org/viewvc/llvm-project?rev=57301&view=rev
Log:
Remove undefined behavior in test (llvm-gcc was
removing the entire generated code, not what I'd
want it to do, but standard-conformant)
Modified:
llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c
Modified: llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c?rev=57301&r1=57300&r2=57301&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c (original)
+++ llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c Wed Oct 8 12:55:52 2008
@@ -4,12 +4,15 @@
/* { dg-skip-if "" { i?86-*-* } { "-m64" } { "" } } */
/* { dg-final { scan-assembler "and.*(0xffffff00|4294967040)" } } */
unsigned char lut[256];
+/* LLVM LOCAL make these global */
+unsigned int *srcptr, *dstptr;
void foo( int count )
{
int j;
- unsigned int *srcptr, *dstptr;
+ /* LLVM LOCAL begin remove uninitialized srcptr, dstptr */
+ /* LLVM LOCAL end */
for (j = 0; j < count; j++) {
unsigned int tmp = *srcptr;
unsigned int alpha = (tmp&255);
More information about the llvm-commits
mailing list