1
0
Fork 0
mirror of synced 2025-07-04 04:17:02 +02:00

IJMP & ICALL

This commit is contained in:
Christian Dietrich 2014-09-28 23:21:43 +02:00
parent 154366010f
commit d59eab62e6
2 changed files with 59 additions and 8 deletions

22
tests/func-ptr.c Normal file
View file

@ -0,0 +1,22 @@
#include <avr/io.h>
// Produces LPM operations
__attribute__((noinline)) void bar() {
UDR='X';
}
void (*foo)() = bar;
int main() {
bar();
foo();
asm volatile ("break");
}
/*
check-name: Function Pointers
check-start:
\avr@instr@stepn{1000000}
\avr@test@UDR{XX}
check-end:
*/