[llvm-commits] [llvm-gcc-4.2] r50391 - /llvm-gcc-4.2/trunk/gcc/testsuite/gcc.apple/i386-bitmask1.c
Chris Lattner
sabre at nondot.org
Mon Apr 28 22:05:22 PDT 2008
Author: lattner
Date: Tue Apr 29 00:05:22 2008
New Revision: 50391
URL: http://llvm.org/viewvc/llvm-project?rev=50391&view=rev
Log:
Fix this test so we don't delete the whole thing.
We compile this loop to amazingly gross code. What is
wrong with this picture:
entry:
%tmp2126 = icmp sgt i32 %count, 0 ; <i1> [#uses=1]
br i1 %tmp2126, label %bb.preheader, label %return
bb.preheader: ; preds = %entry
%tmp = icmp slt i32 %count, 1 ; <i1> [#uses=1]
%smax = select i1 %tmp, i32 1, i32 %count ; <i32> [#uses=1]
br label %bb
..
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=50391&r1=50390&r2=50391&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 Tue Apr 29 00:05:22 2008
@@ -5,11 +5,10 @@
/* { dg-final { scan-assembler "and.*0xffffff00" } } */
unsigned char lut[256];
-void foo( int count )
+void foo( int count, unsigned int *srcptr, unsigned *dstptr )
{
int j;
- unsigned int *srcptr, *dstptr;
for (j = 0; j < count; j++) {
unsigned int tmp = *srcptr;
unsigned int alpha = (tmp&255);
More information about the llvm-commits
mailing list