[LLVMbugs] [Bug 7537] Unable to issue a copy instruction!

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 4 15:41:01 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7537

Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Chris Lattner <clattner at apple.com> 2010-07-04 17:41:00 CDT ---


Reduced testcase:


target datalayout =
"e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32-n8:16:32"
target triple = "i386-pc-linux-gnu"

define void @int327(i32* nocapture %p_38) nounwind {
entry:
  %tmp1 = load i32* %p_38                         ; <i32> [#uses=1]
  %conv = trunc i32 %tmp1 to i16                  ; <i16> [#uses=1]
  %sext = mul i16 %conv, -14592                   ; <i16> [#uses=1]
  %conv315 = lshr i16 %sext, 8                    ; <i16> [#uses=1]
  %conv5 = trunc i16 %conv315 to i8               ; <i8> [#uses=1]
  %tmp7 = load i8* undef                          ; <i8> [#uses=1]
  %mul.i13 = mul i8 %conv5, %tmp7                 ; <i8> [#uses=1]
  %tobool = icmp eq i8 %mul.i13, 0                ; <i1> [#uses=1]
  br i1 %tobool, label %lor.rhs, label %lor.end

lor.rhs:                                          ; preds = %entry
  unreachable

lor.end:                                          ; preds = %entry
  ret void
}

Fails very very similarly to: PR7540, duping it.

*** This bug has been marked as a duplicate of bug 7540 ***

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list