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

            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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

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() {
bb:
  %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
{anonymous}::X86DAGToDAGISel::getAddressOperands({anonymous}::X86ISelAddressMode&,
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to