IJMP & ICALL
This commit is contained in:
parent
154366010f
commit
d59eab62e6
2 changed files with 59 additions and 8 deletions
22
tests/func-ptr.c
Normal file
22
tests/func-ptr.c
Normal 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:
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue