[llvm-bugs] [Bug 42484] New: [InstCombine] commonShiftTransforms - ASSERT: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jul 2 05:08:13 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42484

            Bug ID: 42484
           Summary: [InstCombine] commonShiftTransforms - ASSERT:
                    isa<X>(Val) && "cast<Ty>() argument of incompatible
                    type!"
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: lebedev.ri at gmail.com, llvm-bugs at lists.llvm.org,
                    spatel+llvm at rotateright.com

Reduced from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=15587


Roman - could this be due to rL364791 ?

; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename =
"llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll"
target triple = "x86_64-unknown-linux-gnu"

@X = external global i32

define i64 @test() {
  %A = alloca i64
  %L = load i64, i64* %A
  %V = add i64 ptrtoint (i32* @X to i64), 0
  %B2 = shl i64 %V, 0
  %B4 = ashr i64 %B2, %L
  %B = and i64 undef, %B4
  ret i64 %B
}

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190702/3e9ad7d3/attachment-0001.html>


More information about the llvm-bugs mailing list