#154 ✓hold
Peter Johnson

Encode SSE instructions as AVX

Reported by Peter Johnson | June 25th, 2011 @ 07:51 PM

Originally posted on Trac by dmitri.veprinsky@intel.com
Original Trac Ticket


In order to do easy porting from SSE to AVX.
What do you think about feature, that generate AVX code by SSE instructions
For example

addpd xmm1, xmm2 should be encoded as vaddpd xmm1,xmm1,xmm2
addpd xmm1, should be encoded as vaddpd xmm1,xmm1,

Trac Attachments

h3. Trac Comments

              Changed 3 years ago by peter@tortall.net

We support this already.  Just add a "v" prefix, so vaddpd xmm1, xmm2 -> vaddpd xmm1, xmm1, xmm2.

I considered adding a "DEFAULT VEX" directive to change addpd to generate the VEX version, but in discussion with the NASM folks this idea was shot down.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Yasm Modular Assembler Project

Shared Ticket Bins

People watching this ticket