[llvm-commits] [llvm-gcc-4.2] r64118 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c
Bill Wendling
isanbard at gmail.com
Sun Feb 8 20:31:33 PST 2009
Author: void
Date: Sun Feb 8 22:31:27 2009
New Revision: 64118
URL: http://llvm.org/viewvc/llvm-project?rev=64118&view=rev
Log:
Modify test so that LLVM doesn't reduce the function to nothing.
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=64118&r1=64117&r2=64118&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 Sun Feb 8 22:31:27 2009
@@ -6,11 +6,12 @@
/* { dg-final { scan-assembler "and.*(0xffffff00|4294967040)" } } */
unsigned char lut[256];
-void foo( int count )
+/* LLVM LOCAL - make pointers arguments */
+void foo( int count, unsigned int *srcptr, unsigned int *dstptr )
{
int j;
-
- unsigned int *srcptr, *dstptr;
+
+ /* LLVM LOCAL - make pointers arguments */
for (j = 0; j < count; j++) {
unsigned int tmp = *srcptr;
unsigned int alpha = (tmp&255);
More information about the llvm-commits
mailing list