Re: GNU assembler freaks out at jumps and Intel syntax
Re: GNU assembler freaks out at jumps and Intel syntax
- Subject: Re: GNU assembler freaks out at jumps and Intel syntax
- From: Terry Lambert <email@hidden>
- Date: Mon, 15 Sep 2008 16:26:44 -0700
Ah, you have some reason other than logic for using Intel syntax.
Change it to this:
1:
L5:
popl ëx
cmpl $2, 8(ëp)
je L2
leal LC0-"L00000000001$pb"(ëx), êx
movl êx, (%esp)
call L_puts$stub
.intel_syntax noprefix
test êx, êx
jnz 1b
.att_syntax
-- Terry
On Sep 15, 2008, at 4:15 PM, LuigiG wrote:
But that's using the AT&T syntax. That has always worked fine for me
too, it's only when you switch to Intel syntax that you get problems.
If I chnage your example to use Intel syntax (even limited to that
small bit of code), it doesn't work anymore:
This assembles (and links) correctly:
testl êx,êx
jnz L5
This will fail:
.intel_syntax noprefix
test eax,eax
jnz L5
.att_syntax
foo.s:28:suffix or operands invalid for `jnz'
So, is this a bug in gas? Or must I prepend/append something "L5"
when using Intel syntax? (which would seem to contradict the
"noprefix" option!)
Luigi
Note: I'm on an intel Mac and both -arch i386 and -arch x86_64 give
the same result.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden