On Dec 11, 2009, at 12:56 PM, Eli Friedman wrote:
> Okay... in terms of "actually works", where exactly do you draw the
> line?  How about:
> int foo(int x) {
>  if (x)
>    asm xor eax, eax
>  else
>    asm xor eax, eax
>  }
> }

I am unsure about that case.

> Or:
> int foo(int x) {
>  int i;
>  asm xor eax, eax
>  for (i = 0; i < x; i++)
>    asm imul eax, i
> }
> ?

No, that doesn't set the return value.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to