flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Roman 18 Sep 2020, 08:40
I looking example convert float dd 1.0 or float dq 1.0 to asc2 string.
|
|||
![]() |
|
Furs 18 Sep 2020, 13:23
Your CPU only supports AVX, not AVX2. You can't use ymm registers. (the first one is probably treated as xmm0 or whatever by your CPU).
|
|||
![]() |
|
Tomasz Grysztar 18 Sep 2020, 18:52
Furs wrote: Your CPU only supports AVX, not AVX2. You can't use ymm registers. (the first one is probably treated as xmm0 or whatever by your CPU). You can test this with fasmg's instruction set packages: Code: include 'align.inc' include 'cpu/x64.inc' include 'cpu/ext/avx.inc' ;include 'cpu/ext/avx2.inc' ; try switching this align 16 Abss dq 1.0,2.0,2.0,2.0 Start: vcvtps2dq ymm0, YWORD [Abss] vpxor xmm1, xmm1, xmm1 vpackssdw ymm0, ymm0, ymm1 vpermq ymm0, ymm0, 216 Code: >fasmg test.asm -e10 flat assembler version g.j1gh test.asm [13]: vpackssdw ymm0, ymm0, ymm1 macro vpackssdw [1] macro basic_instruction [6] Custom error: invalid operand size. test.asm [14]: vpermq ymm0, ymm0, 216 Processed: vpermq ymm0, ymm0, 216 Error: illegal instruction. |
|||
![]() |
|
Overclick 25 Sep 2020, 17:28
Isn't fistp enough for that?
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.