1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=avr -mattr=-eijmpcall | FileCheck %s --check-prefix=ICALL
3 ; RUN: llc < %s -mtriple=avr -mattr=+eijmpcall | FileCheck %s --check-prefix=EICALL
5 ; This test verifies the bug https://github.com/llvm/llvm-project/issues/58856
7 declare dso_local i16 @func()
12 ; ICALL-NEXT: ldi r30, pm_lo8(func)
13 ; ICALL-NEXT: ldi r31, pm_hi8(func)
21 ; EICALL-NEXT: ldi r30, lo8_gs(func)
22 ; EICALL-NEXT: ldi r31, hi8_gs(func)
24 ; EICALL-NEXT: ;NO_APP
27 %1 = tail call addrspace(0) ptr addrspace(1) asm "", "=r,0"(ptr addrspace(1) @func)
28 %2 = tail call i16 %1()