indirectbr.ll 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. ; RUN: opt < %s -S -loop-rotate -disable-output -verify-loop-info -verify-dom-info
  2. ; PR5502
  3. define void @z80_do_opcodes() nounwind {
  4. entry:
  5. br label %while.cond
  6. while.cond: ; preds = %end_opcode, %entry
  7. br label %while.body
  8. while.body: ; preds = %while.cond
  9. br label %indirectgoto
  10. run_opcode: ; preds = %indirectgoto
  11. %tmp276 = load i8, i8* undef ; <i8> [#uses=1]
  12. br label %indirectgoto
  13. if.else295: ; preds = %divide_late
  14. br label %end_opcode
  15. end_opcode: ; preds = %indirectgoto, %sw.default42406, %sw.default, %if.else295
  16. %opcode.2 = phi i8 [ %opcode.0, %indirectgoto ], [ 0, %sw.default42406 ], [ undef, %sw.default ], [ %opcode.0, %if.else295 ] ; <i8> [#uses=0]
  17. switch i32 undef, label %while.cond [
  18. i32 221, label %sw.bb11691
  19. i32 253, label %sw.bb30351
  20. ]
  21. sw.bb11691: ; preds = %end_opcode
  22. br label %sw.default
  23. sw.default: ; preds = %sw.bb11691
  24. br label %end_opcode
  25. sw.bb30351: ; preds = %end_opcode
  26. br label %sw.default42406
  27. sw.default42406: ; preds = %sw.bb30351
  28. br label %end_opcode
  29. indirectgoto: ; preds = %run_opcode, %while.body
  30. %opcode.0 = phi i8 [ undef, %while.body ], [ %tmp276, %run_opcode ] ; <i8> [#uses=2]
  31. indirectbr i8* undef, [label %run_opcode, label %if.else295, label %end_opcode]
  32. }