search for: inlineasm1

Displaying 4 results from an estimated 4 matches for "inlineasm1".

Did you mean: inlineasm
2016 Apr 06
2
LTO renaming of constants with inline assembly
...;t propagate to inline assembly, resulting in the wrong output. For example, let's say we have two modules with inline assembly that writes a local constant var named "myvar" into the memory pointed to by its parameter "v", and a simple main that calls each function: $ cat inlineasm1.c static const unsigned char __attribute__((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) : :...
2016 Apr 06
2
LTO renaming of constants with inline assembly
...ong output. >> >> For example, let's say we have two modules with inline assembly that >> writes a local constant var named "myvar" into the memory pointed to by its >> parameter "v", and a simple main that calls each function: >> >> $ cat inlineasm1.c >> static const unsigned char __attribute__((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" >...
2016 Apr 06
2
LTO renaming of constants with inline assembly
...r example, let's say we have two modules with inline assembly that >>>> writes a local constant var named "myvar" into the memory pointed to by its >>>> parameter "v", and a simple main that calls each function: >>>> >>>> $ cat inlineasm1.c >>>> static const unsigned char __attribute__((used)) __attribute__ >>>> ((aligned (1))) myvar = 1; >>>> >>>> void foo(unsigned long int *v) { >>>> __asm__ volatile("movzbl myvar(%%rip), %%eax\n\t" >>>>...
2016 Apr 13
2
LTO renaming of constants with inline assembly
...pagate to inline assembly, resulting in the wrong output. For example, let's say we have two modules with inline assembly that writes a local constant var named "myvar" into the memory pointed to by its parameter "v", and a simple main that calls each function: $ cat inlineasm1.c static const unsigned char __attribute__((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)...