[LLVMbugs] [Bug 1021] NEW: bugpoint reduced test case doesn't reproduce bug

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Nov 28 13:47:16 PST 2006


           Summary: bugpoint reduced test case doesn't reproduce bug
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: bugpoint
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: djg at cray.com

While reducing a bad-generated-code bug (which I'll submit a separate report
for), bugpoint produced a reduced test case which is supposed to reproduce the 
problem, but it didn't. The bug ended up being with the folding of static
initializer data into instructions that use it. The reduced test case bugpoint
produced had the static initializers removed, so it didn't exhibit the problem.

Here's the reduced test case that reproduces the orignial bug, and which
bugpoint reduces into a test case that doesn't reproduce it.

target datalayout = "e-p:32:32"
target endian = little
target pointersize = 32
target triple = "i686-pc-linux-gnu"
%fmt = constant [4 x sbyte] c"%x\0A\00"
%bytes = constant [4 x sbyte] c"\AA\BB\CC\DD"


int %main() {
        %y = alloca uint
        %c = cast uint* %y to sbyte*
        %z = getelementptr [4 x sbyte]* %bytes, int 0, int 0
        call void %llvm.memcpy.i32( sbyte* %c, sbyte* %z, uint 4, uint 1 )
        %r = load uint* %y
        %t = cast [4 x sbyte]* %fmt to sbyte*
        %tmp = call int (sbyte*, ...)* %printf( sbyte* %t, uint %r )
        ret int 0

declare void %llvm.memcpy.i32(sbyte*, sbyte*, uint, uint)

declare int %printf(sbyte*, ...)

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list