Advertisement
ahmd0

Example: test.asm --- vcvtsi2ss and vcvtsi2sd AVX-512 inst.

Sep 11th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .data
  2.  
  3. .code
  4.  
  5. testAsm PROC
  6.     ; MAKE SURE TO SWITCH VISUAL STUDIO 2017 TO
  7.     ; DISASSEMBLY VIEW BY PRESSING CTRL+F11!
  8.  
  9.     ; DO NOT TRY TO STEP INTO THESE INSTRUCTIONS.
  10.     ; They are here just to show the incorrect disassembly.
  11.  
  12.     ; The following instruction:
  13.     db 62h, 31h, 0FEh, 28h, 2Ah, 0D3h   ; vcvtsi2ss xmm10,xmm0,bx
  14.     ; should've been:                     vcvtsi2ss xmm10,xmm0,rbx
  15.  
  16.     ; The following instruction:
  17.     db 62h, 81h, 7Eh, 08h, 2Ah, 0D3h    ; vcvtsi2ss xmm18,xmm0,r11
  18.     ; should've been:                     vcvtsi2ss xmm18,xmm0,r11d
  19.  
  20.     ; The following instruction:
  21.     db 62h, 01h, 0FFh, 08h, 2Ah, 0D3h   ; vcvtsi2sd xmm26,xmm0,r11w
  22.     ; should've been:                     vcvtsi2sd xmm26,xmm0,r11
  23.  
  24.     ; The following instruction:
  25.     db 62h, 21h, 0FFh, 08h, 2Ah, 0D3h   ; vcvtsi2sd xmm26,xmm0,bx
  26.     ; should've been:                     vcvtsi2sd xmm26,xmm0,rbx
  27.  
  28.     ret
  29. testAsm ENDP
  30.  
  31. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement