[PATCH] D33574: PPC: Verify that branch fixups fit within the range.

Eric Christopher via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 16:08:13 PDT 2017


echristo added a comment.

Haven't checked the numbers yet, but perhaps assert?



================
Comment at: lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp:39
+    if (static_cast<int64_t>(Value) >= 0 && Value > 0x7fff)
+      llvm_unreachable("Cond branch target overflow.");
+    else if (static_cast<int64_t>(Value) < 0 && Value < 0xffffffffffff8000)
----------------
Assert instead?


Repository:
  rL LLVM

https://reviews.llvm.org/D33574





More information about the llvm-commits mailing list