Author Topic: JWasm212pre with AVX2  (Read 13628 times)

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: JWasm212pre with AVX2
« Reply #30 on: November 22, 2014, 01:19:58 AM »

I use the good options in the sample you can download.
I have changed jwasm for the one in the 5 post,and I get
Quote
Win64_8.asm(18) : Error A2235: Constant value too large: Bh ;option win64 : 11
Fa is a musical note to play with CL

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #31 on: November 22, 2014, 06:30:45 AM »
OK ToutEnMasm :biggrin:
That one in post #5 is an original JWasm12 version  with only AVX2 built in
so you can use maximum option win64 : 7 which will create 16 byte data alignment
if you don't need 16 byte data alignment use option win64 : 3

the version on the top of the post is my version which is more 'sofisticated'
and able to decide by itself if variable needs 16 byte or 8 byte alignment
and needs option win64 : 11

if you read again my #28 you will see that I explained that there

have a fan :t

Cod-Father

Gunther

  • Member
  • *****
  • Posts: 3515
  • Forgive your enemies, but never forget their names
Re: JWasm212pre with AVX2
« Reply #32 on: November 22, 2014, 09:47:34 AM »
Hi Habran,

I loved the life in Germany, it was a beautiful and developed, dynamic country (1972-74 when Willy Brandt was a Chancellor of the Federal Republic of Germany)
I loved German girls and they loved me back (I was 17-19) :dazzled:

that I can well imagine.  :t

Gunther
Get your facts first, and then you can distort them.

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #33 on: November 22, 2014, 01:24:46 PM »
One day, when I retire, if I get tired of programming I'll write a novel about that life in Germany and maybe make a movie about it 8)
Cod-Father

Gunther

  • Member
  • *****
  • Posts: 3515
  • Forgive your enemies, but never forget their names
Re: JWasm212pre with AVX2
« Reply #34 on: November 23, 2014, 12:34:24 AM »
One day, when I retire, if I get tired of programming I'll write a novel about that life in Germany and maybe make a movie about it 8)

This would be interesting. That's for sure.

Gunther
Get your facts first, and then you can distort them.

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #35 on: November 23, 2014, 06:15:46 AM »
Thanks Gunther :biggrin:

Hey ToutEnMasm, did you succeed to assemble AVX2 instructions? :biggrin:
Cod-Father

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: JWasm212pre with AVX2
« Reply #36 on: November 24, 2014, 04:56:15 PM »
Need another WinMainCRTStartup entry point (link error)
If you can post the same sample who works for you,that will be more simple.
Fa is a musical note to play with CL

ToutEnMasm

  • Member
  • *****
  • Posts: 1189
    • EditMasm
Re: JWasm212pre with AVX2
« Reply #37 on: November 24, 2014, 06:37:00 PM »

The windows sample Works for me without the -pe option
Vc2013
windows 8.1
Fa is a musical note to play with CL

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #38 on: November 24, 2014, 09:27:03 PM »
Hi ToutEnMasm :biggrin:
here is my latest build 64bit with VC13
this is my full version
use:
Code: [Select]
option casemap : none
option win64 : 11
option frame : auto
option stackbase : rsp
I hope you will be happy with it :bgrin:
Cod-Father

Biterider

  • Member
  • **
  • Posts: 113
  • ObjAsm32
    • ObjAsm32
Re: JWasm212pre with AVX2
« Reply #39 on: November 24, 2014, 11:52:11 PM »
Hi Habran
May your provide the complete environment, including your sources, for VC2013? It will help a lot to setup VC faster.
Thanks.

Biterider

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #40 on: November 25, 2014, 12:03:37 AM »
Hi Biterider :biggrin:
long time no see ;)

I will do that in the morning which is about 6 hours from now

see you later
Cod-Father

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #41 on: November 30, 2014, 06:26:46 AM »
I have replaced JWasm64 and JWasm32 on the top of the thread
there was a bug in hll.c  in HllExitDir proc in .CONTINUE
fixed and runs fine now
Cod-Father

anta40

  • Member
  • ***
  • Posts: 293
Re: JWasm212pre with AVX2
« Reply #42 on: December 01, 2014, 12:09:03 AM »
I have replaced JWasm64 and JWasm32 on the top of the thread
there was a bug in hll.c  in HllExitDir proc in .CONTINUE
fixed and runs fine now

Have you updated the source as well?

Update: oops sorry. it's posted on another thread. i didn't notice it  :redface:

sbgk

  • Regular Member
  • *
  • Posts: 2
Re: JWasm212pre with AVX2
« Reply #43 on: January 15, 2015, 08:14:07 AM »
Hi, thanks for your work with jwasm/avx2

I get renderAsm.asm(63): error A2049: Invalid instruction operands

when using

vmovntdqa ymm0, ymmword ptr [rdx+r9]
    vmovntdqa ymm1, ymmword ptr [rdx+r9+20H]
    vmovntdqa ymm2, ymmword ptr [rdx+r9+40H]
    vmovntdqa ymm3, ymmword ptr [rdx+r9+60H]

the following works ok

vmovntdq ymmword ptr [rcx+r9], ymm0
    vmovntdq ymmword ptr [rcx+r9+20H], ymm1
    vmovntdq ymmword ptr [rcx+r9+40H], ymm2
    vmovntdq ymmword ptr [rcx+r9+60H], ymm3

and it all compiles ok in masm.

Hope you can fix the vmovntdqa issue

thanks

habran

  • Member
  • *****
  • Posts: 1107
    • uasm
Re: JWasm212pre with AVX2
« Reply #44 on: January 15, 2015, 09:34:47 AM »
Hi sbgk
Good find :t
It was Typo error easy fix :biggrin:
here is fixed version
Cod-Father