macaw/macaw-aarch32/tests/arm/test-mixed.c
Tristan Ravitch 1fa9b86b26 Rename macaw-asl to macaw-aarch32
This is more descriptive, especially since we will eventually have
macaw-aarch32 (also derived from the ASL specs)
2020-04-05 15:16:39 -07:00

21 lines
292 B
C

#include "util.h"
void thumbFunc(int x, int*res) __attribute__((target("thumb")));
void thumbFunc(int x, int* res) {
if(x > 0) {
x = x + 10;
}
*res = x;
}
void driver(int x, int* res) {
thumbFunc(x + 1, res);
}
void _start() {
int i;
driver((int)&driver, &i);
EXIT();
}