Displaying 4 results from an estimated 4 matches for "inlineasm2".
Did you mean:
inlineasm
2016 Apr 06
2
LTO renaming of constants with inline assembly
...tribute__((used)) __attribute__ ((aligned
(1))) myvar = 1;
void foo(unsigned long int *v) {
__asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
"movq %%rax, %0\n\t"
: "=*m" (*v)
:
: "%eax"
);
}
$ cat inlineasm2.c
static const unsigned char __attribute__((used)) __attribute__ ((aligned
(1))) myvar = 2;
void bar(unsigned long int *v) {
__asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
"movq %%rax, %0\n\t"
: "=*m" (*v)
:
:...
2016 Apr 06
2
LTO renaming of constants with inline assembly
...ng int *v) {
>> __asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
>> "movq %%rax, %0\n\t"
>> : "=*m" (*v)
>> :
>> : "%eax"
>> );
>> }
>>
>> $ cat inlineasm2.c
>> static const unsigned char __attribute__((used)) __attribute__ ((aligned
>> (1))) myvar = 2;
>>
>> void bar(unsigned long int *v) {
>> __asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
>> "movq %%rax, %0\n\t"
>...
2016 Apr 06
2
LTO renaming of constants with inline assembly
...%%rip), %%eax\n\t"
>>>> "movq %%rax, %0\n\t"
>>>> : "=*m" (*v)
>>>> :
>>>> : "%eax"
>>>> );
>>>> }
>>>>
>>>> $ cat inlineasm2.c
>>>> static const unsigned char __attribute__((used)) __attribute__
>>>> ((aligned (1))) myvar = 2;
>>>>
>>>> void bar(unsigned long int *v) {
>>>> __asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
>>>>...
2016 Apr 13
2
LTO renaming of constants with inline assembly
...ed)) __attribute__ ((aligned (1))) myvar = 1;
void foo(unsigned long int *v) {
__asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
"movq %%rax, %0\n\t"
: "=*m" (*v)
:
: "%eax"
);
}
$ cat inlineasm2.c
static const unsigned char __attribute__((used)) __attribute__ ((aligned (1))) myvar = 2;
void bar(unsigned long int *v) {
__asm__ volatile("movzbl myvar(%%rip), %%eax\n\t"
"movq %%rax, %0\n\t"
: "=*m" (*v)...