Skip to content

Instantly share code, notes, and snippets.

@nickdesaulniers
Last active September 6, 2019 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickdesaulniers/15b47087aa7bfca9d8df6208f4733231 to your computer and use it in GitHub Desktop.
Save nickdesaulniers/15b47087aa7bfca9d8df6208f4733231 to your computer and use it in GitHub Desktop.
enum { a } b(void);
c, d, g, h;
i(int);
j() {
int e;
asm goto("" : : : : f);
return a;
f:;
}
k() { asm("" : : "Qo"(d), "r"(c)); }
l(void);
n() {
int o, m;
if (g)
({
__asm__("mcr p15, 0, %0, c7, c10, 4" : : "r"(0) : "memory");
b();
o = l();
i(o);
i(({
__asm__("mcr p15, 0, %0, c7, c10, 4" : : "r"(0) : "memory");
h;
}));
k();
});
else {
__asm__("mcr p15, 0, %0, c7, c10, 4" : : "r"(0) : "memory");
b();
m = l();
i(m);
i(({
__asm__("mcr p15, 0, %0, c7, c10, 4" : : "r"(0) : "memory");
n;
}));
k();
}
j();
}
clang --target=arm-linux-gnueabihf -no-integrated-as -O2 -fsanitize-coverage=trace-pc -c -o bttv-cards.o bttv-cards.i
nm bttv-cards.o | grep LBB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment