[LLVMdev] [PATCH] fix outs/ins of MOV16mr instruction (X86)
Jun Koi
junkoi2004 at gmail.com
Tue Mar 24 19:16:19 PDT 2015
On Wed, Mar 25, 2015 at 12:56 AM, Ahmed Bougacha <ahmed.bougacha at gmail.com>
wrote:
> On Tue, Mar 24, 2015 at 7:54 AM, Jun Koi <junkoi2004 at gmail.com> wrote:
> > Hi,
> >
> > This patch fixes outs/ins of MOV16mr instruction of X86.
> >
> > Thanks.
> >
> >
> > diff --git a/lib/Target/X86/X86InstrInfo.td
> b/lib/Target/X86/X86InstrInfo.td
> > index e9a0431..f5b2064 100644
> > --- a/lib/Target/X86/X86InstrInfo.td
> > +++ b/lib/Target/X86/X86InstrInfo.td
> > @@ -1412,7 +1412,7 @@ let SchedRW = [WriteStore] in {
> > def MOV8mr : I<0x88, MRMDestMem, (outs), (ins i8mem :$dst, GR8 :$src),
> > "mov{b}\t{$src, $dst|$dst, $src}",
> > [(store GR8:$src, addr:$dst)], IIC_MOV_MEM>;
> > -def MOV16mr : I<0x89, MRMDestMem, (outs), (ins i16mem:$dst, GR16:$src),
> > +def MOV16mr : I<0x89, MRMDestMem, (outs i16mem:$dst), (ins GR16:$src),
> > "mov{w}\t{$src, $dst|$dst, $src}",
> > [(store GR16:$src, addr:$dst)], IIC_MOV_MEM>, OpSize16;
>
> Why? i16mem here stands for the pointer, not the actual memory. A
> store doesn't define a pointer, so why would it be in "outs"?
>
Then why does this "i16mem:$dst" belongs to "ins"? Is that wrong, correct?
Also, what's special about i16? You'd need to change the various other
> *mr instructions, for instance the MOV8mr right above.
>
>
Yes, I would fix that with another patch, but now I am not sure if this is
needed.
Thanks,
Jun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150325/5c58485d/attachment.html>
More information about the llvm-dev
mailing list