Re: SVM instructions

2017-03-17 Thread Mark Kettenis
> Date: Fri, 17 Mar 2017 07:00:08 +0100 > From: Joerg Sonnenberger <jo...@bec.de> > > On Wed, Mar 15, 2017 at 09:05:56PM +0100, Mark Kettenis wrote: > > Clang only accepts SVM instructions with explicit operands, for > > example: > > > > vmload %rax

Re: SVM instructions

2017-03-17 Thread Joerg Sonnenberger
On Wed, Mar 15, 2017 at 09:05:56PM +0100, Mark Kettenis wrote: > Clang only accepts SVM instructions with explicit operands, for > example: > > vmload %rax You might want to look at the aliases e.g. for monitor/mwait. Should be pretty easy to extend as long as we are talkig

Re: SVM instructions

2017-03-15 Thread Mark Kettenis
> Date: Wed, 15 Mar 2017 16:23:33 -0700 > From: Mike Larkin <mlar...@azathoth.net> > > On Wed, Mar 15, 2017 at 09:05:56PM +0100, Mark Kettenis wrote: > > Clang only accepts SVM instructions with explicit operands, for > > example: > > > > vmload %rax

Re: SVM instructions

2017-03-15 Thread Mike Larkin
On Wed, Mar 15, 2017 at 09:05:56PM +0100, Mark Kettenis wrote: > Clang only accepts SVM instructions with explicit operands, for > example: > > vmload %rax > > Unfortunately gas doesn't accept this form. It does accept the > instruction without any op

SVM instructions

2017-03-15 Thread Mark Kettenis
Clang only accepts SVM instructions with explicit operands, for example: vmload %rax Unfortunately gas doesn't accept this form. It does accept the instruction without any operands: vmload and the incorrect form: vmload (%rax) The diff below fixes this. Slight flaw with this diff