Displaying 10 results from an estimated 10 matches for "struct_t".
Did you mean:
struct_ty
2016 May 24
5
Liveness of AL, AH and AX in x86 backend
I'm trying to see how the x86 backend deals with the relationship
between AL, AH and AX, but I can't get it to generate any code that
would expose an interesting scenario.
For example, I wrote this piece:
typedef struct {
char x, y;
} struct_t;
struct_t z;
struct_t foo(char *p) {
struct_t s;
s.x = *p++;
s.y = *p;
z = s;
s.x++;
return s;
}
But the output at -O2 is
foo: # @foo
.cfi_startproc
# BB#0: # %entry
movb (%rdi), %al...
2016 May 24
0
Liveness of AL, AH and AX in x86 backend
...86 backend
>
>I'm trying to see how the x86 backend deals with the relationship
>between AL, AH and AX, but I can't get it to generate any code that
>would expose an interesting scenario.
>
>For example, I wrote this piece:
>
>typedef struct {
> char x, y;
>} struct_t;
>
>struct_t z;
>
>struct_t foo(char *p) {
> struct_t s;
> s.x = *p++;
> s.y = *p;
> z = s;
> s.x++;
> return s;
>}
>
>But the output at -O2 is
>
>foo: # @foo
> .cfi_startproc
># BB#0:...
2016 May 24
0
Liveness of AL, AH and AX in x86 backend
...g> wrote:
>
> I'm trying to see how the x86 backend deals with the relationship between AL, AH and AX, but I can't get it to generate any code that would expose an interesting scenario.
>
> For example, I wrote this piece:
>
> typedef struct {
> char x, y;
> } struct_t;
>
> struct_t z;
>
> struct_t foo(char *p) {
> struct_t s;
> s.x = *p++;
> s.y = *p;
> z = s;
> s.x++;
> return s;
> }
>
> But the output at -O2 is
>
> foo: # @foo
> .cfi_startproc
> # BB#0:...
2016 May 24
3
Liveness of AL, AH and AX in x86 backend
...; I'm trying to see how the x86 backend deals with the relationship between AL, AH and AX, but I can't get it to generate any code that would expose an interesting scenario.
>>
>> For example, I wrote this piece:
>>
>> typedef struct {
>> char x, y;
>> } struct_t;
>>
>> struct_t z;
>>
>> struct_t foo(char *p) {
>> struct_t s;
>> s.x = *p++;
>> s.y = *p;
>> z = s;
>> s.x++;
>> return s;
>> }
>>
>> But the output at -O2 is
>>
>> foo:...
2016 May 24
3
Liveness of AL, AH and AX in x86 backend
...e how the x86 backend deals with the relationship
> >between AL, AH and AX, but I can't get it to generate any code that
> >would expose an interesting scenario.
> >
> >For example, I wrote this piece:
> >
> >typedef struct {
> > char x, y;
> >} struct_t;
> >
> >struct_t z;
> >
> >struct_t foo(char *p) {
> > struct_t s;
> > s.x = *p++;
> > s.y = *p;
> > z = s;
> > s.x++;
> > return s;
> >}
> >
> >But the output at -O2 is
> >
> >foo:...
2016 May 24
0
Liveness of AL, AH and AX in x86 backend
...the relationship
> >between AL, AH and AX, but I can't get it to generate any code that
> >would expose an interesting scenario.
> >
> >For example, I wrote this piece:
> >
> >typedef struct {
> > char x, y;
> >} struct_t;
> >
> >struct_t z;
> >
> >struct_t foo(char *p) {
> > struct_t s;
> > s.x = *p++;
> > s.y = *p;
> > z = s;
> > s.x++;
> > return s;
> >}
> >
> >But the outp...
2016 May 24
3
Liveness of AL, AH and AX in x86 backend
...t; >between AL, AH and AX, but I can't get it to generate any code that
>> >would expose an interesting scenario.
>> >
>> >For example, I wrote this piece:
>> >
>> >typedef struct {
>> > char x, y;
>> >} struct_t;
>> >
>> >struct_t z;
>> >
>> >struct_t foo(char *p) {
>> > struct_t s;
>> > s.x = *p++;
>> > s.y = *p;
>> > z = s;
>> > s.x++;
>> > return s;
>> >}
>&g...
2016 May 24
0
Liveness of AL, AH and AX in x86 backend
...AX, but I can't get it to generate any code that
>>> >would expose an interesting scenario.
>>> >
>>> >For example, I wrote this piece:
>>> >
>>> >typedef struct {
>>> > char x, y;
>>> >} struct_t;
>>> >
>>> >struct_t z;
>>> >
>>> >struct_t foo(char *p) {
>>> > struct_t s;
>>> > s.x = *p++;
>>> > s.y = *p;
>>> > z = s;
>>> > s.x++;
>>> &...
2016 May 25
0
Liveness of AL, AH and AX in x86 backend
...ow the x86 backend deals with the relationship between AL, AH and AX, but I can't get it to generate any code that would expose an interesting scenario.
>>>
>>> For example, I wrote this piece:
>>>
>>> typedef struct {
>>> char x, y;
>>> } struct_t;
>>>
>>> struct_t z;
>>>
>>> struct_t foo(char *p) {
>>> struct_t s;
>>> s.x = *p++;
>>> s.y = *p;
>>> z = s;
>>> s.x++;
>>> return s;
>>> }
>>>
>>> But the output at -O2 is
>&...
2016 May 24
1
Liveness of AL, AH and AX in x86 backend
...to generate any code that
>>>> >would expose an interesting scenario.
>>>> >
>>>> >For example, I wrote this piece:
>>>> >
>>>> >typedef struct {
>>>> > char x, y;
>>>> >} struct_t;
>>>> >
>>>> >struct_t z;
>>>> >
>>>> >struct_t foo(char *p) {
>>>> > struct_t s;
>>>> > s.x = *p++;
>>>> > s.y = *p;
>>>> > z = s;
>>>>...