[llvm] [AVR] Wrap out-of-bounds relative jumps (PR #118015)

Ben Shi via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 23 17:12:01 PST 2024


================
@@ -0,0 +1,2078 @@
+; RUN: llc < %s -march=avr -mcpu=avr25 -filetype=obj -o - | llvm-objdump --mcpu=avr25 -dr --no-show-raw-insn --no-leading-addr - | FileCheck --check-prefix=AVR25 %s
+; RUN: llc < %s -march=avr -mcpu=avr3 -filetype=obj -o - | llvm-objdump --mcpu=avr3 -dr --no-show-raw-insn --no-leading-addr - | FileCheck --check-prefix=AVR3 %s
+
----------------
benshi001 wrote:

It would be better to add one more test which show failure of `expected an integer in the range ...` by adding `not llc ... -mcpu=attiny13`.

https://github.com/llvm/llvm-project/pull/118015


More information about the llvm-commits mailing list