Modify ↓
Ticket #163 (new enhancement)
Encode SSE instructions as AVX
| Reported by: | dmitri.veprinsky@… | Owned by: | |
|---|---|---|---|
| Priority: | P1 | Milestone: | |
| Component: | Core | Version: | 0.7.1 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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, <mem> should be encoded as vaddpd xmm1,xmm1,<mem>
Attachments
Note: See
TracTickets for help on using
tickets.

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.