projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mark ebp output of leave as ignore
[libfirm]
/
ir
/
be
/
test
/
asm_test4.c
diff --git
a/ir/be/test/asm_test4.c
b/ir/be/test/asm_test4.c
index
7fe8c43
..
d93f1c0
100644
(file)
--- a/
ir/be/test/asm_test4.c
+++ b/
ir/be/test/asm_test4.c
@@
-1,7
+1,8
@@
-
unsigned long get_sp(void)
{
- __asm__(" movl %esp,%eax ");
+ unsigned long esp;
+ __asm__("movl %%esp, %0" : "=mr" (esp));
+ return esp;
}
int main(void) {