[llvm-bugs] [Bug 41418] New: [X86] ASSERT: !AM.Disp && "Non-zero displacement is ignored with JT."

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Apr 7 12:24:30 PDT 2019


            Bug ID: 41418
           Summary: [X86] ASSERT: !AM.Disp && "Non-zero displacement is
                    ignored with JT."
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: craig.topper at gmail.com, llvm-bugs at lists.llvm.org,
                    llvm-dev at redking.me.uk, spatel+llvm at rotateright.com

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

; ModuleID = 'bugpoint-reduced-simplified.bc'
source_filename = "llvm/test/Transforms/SimplifyCFG/2003-08-17-FoldSwitch.ll"
target triple = "x86_64-unknown-linux-gnu"

define void @test1() {
  %B = urem i32 65536, -1
  switch i32 %B, label %Default [
    i32 0, label %Foo
    i32 1, label %Bar
    i32 2, label %Baz
    i32 5, label %TheDest

Default:                                          ; preds = %bb
  ret void

Foo:                                              ; preds = %bb
  ret void

Bar:                                              ; preds = %bb
  ret void

Baz:                                              ; preds = %bb
  ret void

TheDest:                                          ; preds = %bb
  ret void

llc: /home/simon/LLVM/llvm/lib/Target/X86/X86ISelDAGToDAG.cpp:288: void
const llvm::SDLoc&, llvm::SDValue&, llvm::SDValue&, llvm::SDValue&,
llvm::SDValue&, llvm::SDValue&): Assertion `!AM.Disp && "Non-zero displacement
is ignored with JT."' failed.

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/20190407/a6899fa4/attachment.html>

More information about the llvm-bugs mailing list