--- Comment #8 from valery_reznic at yahoo dot com 2009-02-11 14:26 ---
(In reply to comment #7)
(In reply to comment #5)
Any why you say I shouldn't call other function from inside asm ?
See for example [1].
[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16331#c14
I read
--- Comment #9 from ubizjak at gmail dot com 2009-02-11 15:32 ---
(In reply to comment #8)
In the inline assembler I MYSELF put arguments in the places where MY (by the
way, written in assembler) function expect to get them.
Then you actually don't need a compiler... ;)
I need
--- Comment #7 from ubizjak at gmail dot com 2009-02-11 07:50 ---
(In reply to comment #5)
Any why you say I shouldn't call other function from inside asm ?
See for example [1].
[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16331#c14
--
--- Comment #5 from valery_reznic at yahoo dot com 2009-02-09 16:07 ---
(In reply to comment #3)
r11 is saved by the caller so this is the generated code is valid.
Since nothing else uses r11 in the inline-asm, the code is correct.
The problem is not that r11 not saved at
--- Comment #6 from valery_reznic at yahoo dot com 2009-02-09 16:09 ---
(In reply to comment #4)
Or you can subq $128, %rsp; call my_syscall; addq $128, %rsp in your inline
assembly.
When I understood what happened I did it, but thank you anyway.
--
--- Comment #3 from ubizjak at gmail dot com 2009-02-06 11:51 ---
r11 is saved by the caller so this is the generated code is valid.
Since nothing else uses r11 in the inline-asm, the code is correct.
The problem is not that r11 not saved at stack, but that saved on the stack
--- Comment #4 from jakub at gcc dot gnu dot org 2009-02-06 12:08 ---
Or you can subq $128, %rsp; call my_syscall; addq $128, %rsp in your inline
assembly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39078
--- Comment #1 from pinskia at gcc dot gnu dot org 2009-02-06 01:42 ---
r11 is saved by the caller so this is the generated code is valid.
Since nothing else uses r11 in the inline-asm, the code is correct.
From the i386.h header:
The value is zero if the register is not call used
--- Comment #2 from valery_reznic at yahoo dot com 2009-02-06 07:12 ---
(In reply to comment #1)
r11 is saved by the caller so this is the generated code is valid.
Since nothing else uses r11 in the inline-asm, the code is correct.
The problem is not that r11 not saved at stack, but