Add encodings for square root instructions.

This commit is contained in:
Jakob Stoklund Olesen
2017-09-25 13:14:55 -07:00
parent 36585ddc4f
commit ac343ba92a
5 changed files with 45 additions and 2 deletions

View File

@@ -82,6 +82,14 @@ ebb0:
; asm: xorps %xmm5, %xmm2
[-,%xmm2] v37 = bxor v11, v10 ; bin: 0f 57 d5
; Unary arithmetic.
; asm: sqrtss %xmm5, %xmm2
[-,%xmm2] v50 = sqrt v10 ; bin: f3 0f 51 d5
; asm: sqrtss %xmm2, %xmm5
[-,%xmm5] v51 = sqrt v11 ; bin: f3 0f 51 ea
; Load/Store
; asm: movd (%ecx), %xmm5
@@ -192,6 +200,14 @@ ebb0:
; asm: xorps %xmm5, %xmm2
[-,%xmm2] v37 = bxor v11, v10 ; bin: 0f 57 d5
; Unary arithmetic.
; asm: sqrtsd %xmm5, %xmm2
[-,%xmm2] v50 = sqrt v10 ; bin: f2 0f 51 d5
; asm: sqrtsd %xmm2, %xmm5
[-,%xmm5] v51 = sqrt v11 ; bin: f2 0f 51 ea
; Load/Store
; asm: movq (%ecx), %xmm5