Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

It's all magic. :-) -- Larry Wall in <7282@jpl-devvax.JPL.NASA.GOV>


programming / comp.lang.asm.x86 / Re: virtualbox vcvtsi2sd illegal instruction

SubjectAuthor
* virtualbox vcvtsi2sd illegal instructionaen
+* Re: virtualbox vcvtsi2sd illegal instructionJJ
|`- Re: virtualbox vcvtsi2sd illegal instructionaen
`* Re: virtualbox vcvtsi2sd illegal instructionMelzzzzz
 +- Re: virtualbox vcvtsi2sd illegal instructionaen
 +* Re: virtualbox vcvtsi2sd illegal instructionaen
 |`* Re: virtualbox vcvtsi2sd illegal instructionGeorge Neuner
 | `- Re: virtualbox vcvtsi2sd illegal instructionaen
 `* Re: virtualbox vcvtsi2sd illegal instructionBonita Montero
  `* Re: virtualbox vcvtsi2sd illegal instructionaen
   `* Re: virtualbox vcvtsi2sd illegal instructionBonita Montero
    `* Re: virtualbox vcvtsi2sd illegal instructionBonita Montero
     `* Re: virtualbox vcvtsi2sd illegal instructionBonita Montero
      `* Re: virtualbox vcvtsi2sd illegal instructionaen
       `- Re: virtualbox vcvtsi2sd illegal instructionBonita Montero

1
Subject: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sun, 9 Aug 2020 14:08 UTC
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: virtualbox vcvtsi2sd illegal instruction
Date: Sun, 09 Aug 2020 14:08:05 GMT
Organization: Aioe.org NNTP Server
Lines: 18
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f2ffd30.584724406@nntp.aioe.org>
Injection-Info: reader02.eternal-september.org; posting-host="fc0e9c657df83a0e1e5cd0a115626bd0";
logging-data="20972"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18vmZ/ppMjd/nGuIhhybCakxR4QW3mwyYA="
Cancel-Lock: sha1:PvsST7sOn+hZg+zxDLtB7HPTJQQ=
View all headers
Hi!

When I use

mov       rax,123456789012
vcvtsi2sd xmm0,xmm0,rax

on the host system, and step through it in a debugger it works well,
but when I do the same thing in virtualbox on a linux guest I get an
illegal instruction.

I thought the virtualbox code runs natively on the host cpu, so the
instruction set should be the same.

What's going on here?
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: JJ
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sun, 9 Aug 2020 17:08 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: jj4pub...@nospicedham.vfemail.net (JJ)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 00:08:49 +0700
Organization: Aioe.org NNTP Server
Lines: 17
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <e6de4406tayh.13ibn0nqbv499.dlg@40tude.net>
References: <5f2ffd30.584724406@nntp.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="fc0e9c657df83a0e1e5cd0a115626bd0";
logging-data="29471"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3BWBNDDwvOCLt8bQXcjRjKD/jUwhcfFk="
User-Agent: 40tude_Dialog/2.0.15.84
Cancel-Lock: sha1:9RHaYljfqvQPzhoiuS8cIdXinfc=
View all headers
On Sun, 09 Aug 2020 14:08:05 GMT, aen@nospicedham.spamtrap.com wrote:

I thought the virtualbox code runs natively on the host cpu, so the
instruction set should be the same.

Not always, even though the VM is configured to use hardware virtualization.
VirtualBox may decide to use other type of virtualization engine as
necessary.

Check the "VM Execution Engine" field on the "Runtime Information" tab of
the "Session Information" dialog of a running VM. i.e. on the running VM's
window:

  Main menu -> Machine -> Session Information

Or press the Host+N keyboard shortcut.



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Sun, 9 Aug 2020 18:58 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Sun, 09 Aug 2020 18:58:33 GMT
Organization: Aioe.org NNTP Server
Lines: 81
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f30452e.603154406@nntp.aioe.org>
References: <5f2ffd30.584724406@nntp.aioe.org> <e6de4406tayh.13ibn0nqbv499.dlg@40tude.net>
Injection-Info: reader02.eternal-september.org; posting-host="fc0e9c657df83a0e1e5cd0a115626bd0";
logging-data="4323"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18PihrtY2NMA2WeWAmZLaJqbmUpf2Qk5I0="
Cancel-Lock: sha1:huL6r5+C49EGtPRNsFbwe1y5eNI=
View all headers
On Mon, 10 Aug 2020 00:08:49 +0700, JJ
<jj4public@nospicedham.vfemail.net> wrote:

On Sun, 09 Aug 2020 14:08:05 GMT, aen@nospicedham.spamtrap.com wrote:

I thought the virtualbox code runs natively on the host cpu, so the
instruction set should be the same.

Not always, even though the VM is configured to use hardware virtualization.
VirtualBox may decide to use other type of virtualization engine as
necessary.

Check the "VM Execution Engine" field on the "Runtime Information" tab of
the "Session Information" dialog of a running VM. i.e. on the running VM's
window:

 Main menu -> Machine -> Session Information

I have:

Konfiguration

Allgemein
  Name                   Debian
  Betriebssystem         Debian (64-bit)
System
  Hauptspeicher          4096 MB
  Bootreihenfolge        Diskettenlaufwerk, Optisch, Platte
  Beschleunigung    VT-x/AMD-V, Nested Paging, KVM-Paravirtualisierung
Anzeige
  Grafikspeicher         16 MB
  Grafikcontroller       VMSVGA
  Fernsteuerung          deaktiviert
  Aufnahme               deaktiviert
Massenspeicher
  Controller: IDE

  Controller: SATA
   SATA-Port 0           Debian.vdi (normal, 32,00 GB)
Audio
  Host-Treiber           Windows DirectSound
  Controller             ICH AC97
Netzwerk
  Adapter 1              Intel PRO/1000 MT Desktop (NAT)
Serielle Schnittstellen
  deaktiviert
USB
  USB-Controller         OHCI

Gemeinsame Ordner
  Gemeinsame Ordner      1

Laufzeit

Laufzeit-Attribute

  VM-Laufzeit            0d 01:24:50
  Zwischenablage-Modus   bidirektional
  Drag-und-Drop Modus    deaktiviert

  ---------------------------------
  Nested Paging          inaktiv
  Unrestricted Execution inaktiv
  Paravirtualisierung    KVM
  Gasterweiterungen      6.1.12 r139181
  Gast-Betriebssystem    Linux 2.6 / 3.x / 4.x (64-bit)


Performance Monitor

Some graphs

Gastkontrolle
  Sitzungs-/Prozess-ID

Sorry for the language (german installation).

The Processor is an Intel Core i7-8700 CPU @ 3.20GHz
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: Melzzzzz
Newsgroups: comp.lang.asm.x86
Organization: usenet-news.net
Date: Mon, 10 Aug 2020 01:37 UTC
References: 1
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Melzz...@nospicedham.zzzzz.com (Melzzzzz)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 01:37:14 GMT
Organization: usenet-news.net
Lines: 30
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <ex1YG.1012029$OD.319863@fx22.am4>
References: <5f2ffd30.584724406@nntp.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="7228"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+/A+LbDxK3iAcYXWl0VyQKA8qerehqdsg="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:V22BNrix23YhLY/aOs8pGJsop88=
View all headers
On 2020-08-09, aen@nospicedham.spamtrap.com <aen@nospicedham.spamtrap.com> wrote:
Hi!

When I use

mov       rax,123456789012
vcvtsi2sd xmm0,xmm0,rax

on the host system, and step through it in a debugger it works well,
but when I do the same thing in virtualbox on a linux guest I get an
illegal instruction.

I thought the virtualbox code runs natively on the host cpu, so the
instruction set should be the same.

What's going on here?

Check support for AVX, perhaps your version of vbox does not support it?


--
current job title: senior software engineer
skills: c++,c,rust,go,nim,haskell...

press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Svi smo svedoci - oko 3 godine intenzivne propagande je dovoljno da jedan narod poludi --  Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi
bili naoruzani. -- Mladen Gogala



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 10 Aug 2020 04:35 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 04:35:25 GMT
Organization: Aioe.org NNTP Server
Lines: 18
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f30ccf6.637914625@nntp.aioe.org>
References: <5f2ffd30.584724406@nntp.aioe.org> <ex1YG.1012029$OD.319863@fx22.am4>
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="22070"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/WZFoL7F7+Wnl4nCpm6+vzxjpPQU3WDJA="
Cancel-Lock: sha1:mh3FqzA9VWSzVM/NAce50pPiRm8=
View all headers
On Mon, 10 Aug 2020 01:37:14 GMT, Melzzzzz
<Melzzzzz@nospicedham.zzzzz.com> wrote:
....

Check support for AVX, perhaps your version of vbox does not support it?

In Wikipedia under VirtualBox in the Feature set section I find:

Feature set
....
Since version 5.0
AVX, AVX-2, AES-NI, SSE 4.1/4.2 instructions (if supported by the host
CPU)
....
I have version 6.1.
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 10 Aug 2020 12:24 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 12:24:28 GMT
Organization: Aioe.org NNTP Server
Lines: 45
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f3139c5.665769343@nntp.aioe.org>
References: <5f2ffd30.584724406@nntp.aioe.org> <ex1YG.1012029$OD.319863@fx22.am4>
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="29320"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18x0SRtoydpoLkiK+yVRAw3qOSlQKqRS5Q="
Cancel-Lock: sha1:npKYvT2IrCfaN86emA1XvZIo2FQ=
View all headers
On Mon, 10 Aug 2020 01:37:14 GMT, Melzzzzz
<Melzzzzz@nospicedham.zzzzz.com> wrote:
....

Check support for AVX, perhaps your version of vbox does not support it?

Here is the /proc/cpuinfo from the guest:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
stepping : 10
microcode : 0xffffffff
cpu MHz : 3192.010
cache size : 12288 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm
constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq
pni ssse3 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single pti
fsgsbase invpcid md_clear flush_l1d arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass
l1tf mds swapgs itlb_multihit
bogomips : 6384.02
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

There is no avx in the flags.
Could it be that buster doesn't support avx?
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: Bonita Montero
Newsgroups: comp.lang.asm.x86
Organization: A noiseless patient Spider
Date: Mon, 10 Aug 2020 12:29 UTC
References: 1 2
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@nospicedham.gmail.com (Bonita Montero)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 14:29:01 +0200
Organization: A noiseless patient Spider
Lines: 6
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rgreib$rgh$2@dont-email.me>
References: <5f2ffd30.584724406@nntp.aioe.org>
<ex1YG.1012029$OD.319863@fx22.am4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="3048"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++8VCESZItoDcz0/cPb0VylVCfnqvGAj4="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.1.1
Cancel-Lock: sha1:hGIA1Y6wUoNdCbdIAacJtGDj+TU=
View all headers
vcvtsi2sd xmm0,xmm0,rax

Check support for AVX, perhaps your version of vbox does not support it?

The above instruction is SSE.



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 10 Aug 2020 14:04 UTC
References: 1 2 3
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 14:04:32 GMT
Organization: Aioe.org NNTP Server
Lines: 50
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f31538c.672368296@nntp.aioe.org>
References: <5f2ffd30.584724406@nntp.aioe.org> <ex1YG.1012029$OD.319863@fx22.am4> <rgreib$rgh$2@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="5324"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/SXW5+pEGV8/RNmLiqHxWPfZfcgB4E9U="
Cancel-Lock: sha1:8unIYmpZMj0HhrkN4peL+zrZq9E=
View all headers
On Mon, 10 Aug 2020 14:29:01 +0200, Bonita Montero
<Bonita.Montero@nospicedham.gmail.com> wrote:

vcvtsi2sd xmm0,xmm0,rax

Check support for AVX, perhaps your version of vbox does not support it?

The above instruction is SSE.

From Intel 64 and IA-32 Architectues Software Developer's Manual
     Volume 2 (2A, 2B & 2C): Instruction Set Reference, A-Z

CVTSI2SD - Convert Dword Integer to Scalar Double-Precision FP value
Opcode/                 Op  64/32-bit CPUID   Description
Instruction             /En Mode      Feature
                                      Flag

F2 0F 2A /r             RM  V/V       SSE2    Convert one signed
CVTSI2SD xmm,r/m32                            doubleword integer from
                                              r/m32 to one double-
                                              precision floating-point
                                              value in xmm.

F2 REX.W 0F 2A /r       RM  V/N.E.    SSE2    Convert one signed
CVTSI2SD xmm,r/m32                            quadword integer from
                                              r/m64 to one double-
                                              precision floating-point
                                              value in xmm.

VEX.NDS.LIG.F2.0F.W0 2A /r RM V/V     AVX     Convert one signed
VCVTSI2SD xmm,r/m32                           doubleword integer from
                                              r/m32 to one double-
                                              precision floating-point
                                              value in xmm1.
VEX.NDS.LIG.F2.0F.W1 2A /r RM V/V     AVX     Convert one signed
VCVTSI2SD xmm,r/m32                           quadword integer from
                                              r/m64 to one double-
                                              precision floating-point
                                              value in xmm1.

But looking that up made me realize that I overlooked the sse2
instruction (silly, silly), which solves my problem, because I can use
that one instead of the avx instruction.

Thanks to all for your tips and hints.

P.S.: Still wondering though, why there isn't an avx in the flags.
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: George Neuner
Newsgroups: comp.lang.asm.x86
Organization: A noiseless patient Spider
Date: Mon, 10 Aug 2020 15:15 UTC
References: 1 2 3
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: gneun...@nospicedham.comcast.net (George Neuner)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 11:15:40 -0400
Organization: A noiseless patient Spider
Lines: 38
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <1so2jfh0d34kkdrdn4q1qje85a9pn1ro31@4ax.com>
References: <5f2ffd30.584724406@nntp.aioe.org> <ex1YG.1012029$OD.319863@fx22.am4> <5f3139c5.665769343@nntp.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="2377"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8iJjq/fCwZZP+Z8ROitCaK9ScT9LRFKQ="
User-Agent: ForteAgent/8.00.32.1272
Cancel-Lock: sha1:WtGQSu0KHbRkmIWkznNnQvTJF84=
View all headers
On Mon, 10 Aug 2020 12:24:28 GMT, aen@nospicedham.spamtrap.com wrote:

On Mon, 10 Aug 2020 01:37:14 GMT, Melzzzzz
<Melzzzzz@nospicedham.zzzzz.com> wrote:
...

Check support for AVX, perhaps your version of vbox does not support it?

Here is the /proc/cpuinfo from the guest:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 158
model name : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
stepping : 10

:

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm
constant_tsc rep_good nopl xtopology nonstop_tsc cpuid tsc_known_freq
pni ssse3 pcid sse4_1 sse4_2 hypervisor lahf_lm invpcid_single pti
fsgsbase invpcid md_clear flush_l1d arch_capabilities

:

There is no avx in the flags.
Could it be that buster doesn't support avx?


The i7-8700 [if that is the correct CPU] supports both AVX and AVX2.
Somehow it is not being detected properly.

https://ark.intel.com/content/www/us/en/ark/products/126686/intel-core-i7-8700-processor-12m-cache-up-to-4-60-ghz.html

George



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: Bonita Montero
Newsgroups: comp.lang.asm.x86
Organization: A noiseless patient Spider
Date: Mon, 10 Aug 2020 16:18 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@nospicedham.gmail.com (Bonita Montero)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 18:18:17 +0200
Organization: A noiseless patient Spider
Lines: 7
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rgrs08$lbi$1@dont-email.me>
References: <5f2ffd30.584724406@nntp.aioe.org>
<ex1YG.1012029$OD.319863@fx22.am4> <rgreib$rgh$2@dont-email.me>
<5f31538c.672368296@nntp.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="26619"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QPgqiSSGZ7kyQBwfSq3+kbPKUQ4PmA2w="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.1.1
Cancel-Lock: sha1:xrNJn+dDjNUuRMSeiC/JrLBlTg8=
View all headers
But looking that up made me realize that I overlooked the sse2
instruction (silly, silly), which solves my problem, because I can use
that one instead of the avx instruction.

You don't have to replace "vcvtsi2sd xmm0,xmm0,rax" with something
else - it is already SSE2.



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: Bonita Montero
Newsgroups: comp.lang.asm.x86
Organization: A noiseless patient Spider
Date: Mon, 10 Aug 2020 16:34 UTC
References: 1 2 3 4 5
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@nospicedham.gmail.com (Bonita Montero)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 18:34:13 +0200
Organization: A noiseless patient Spider
Lines: 5
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rgrsu4$rgi$1@dont-email.me>
References: <5f2ffd30.584724406@nntp.aioe.org>
<ex1YG.1012029$OD.319863@fx22.am4> <rgreib$rgh$2@dont-email.me>
<5f31538c.672368296@nntp.aioe.org> <rgrs08$lbi$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="32483"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qYHYi9jiXPhB6IUK7mYMvCHq6MVzW+SA="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.1.1
Cancel-Lock: sha1:qA8UUDkqphoSXJLznETA7melE/Q=
View all headers
You don't have to replace "vcvtsi2sd xmm0,xmm0,rax" with something
else - it is already SSE2.

Sorry, it's "... xmm0, rax" that is SSE2, not "... xmm0, xmm0, rax".



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: Bonita Montero
Newsgroups: comp.lang.asm.x86
Organization: A noiseless patient Spider
Date: Mon, 10 Aug 2020 18:24 UTC
References: 1 2 3 4 5 6
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@nospicedham.gmail.com (Bonita Montero)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 20:24:51 +0200
Organization: A noiseless patient Spider
Lines: 9
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rgs3dj$7j5$1@dont-email.me>
References: <5f2ffd30.584724406@nntp.aioe.org>
<ex1YG.1012029$OD.319863@fx22.am4> <rgreib$rgh$2@dont-email.me>
<5f31538c.672368296@nntp.aioe.org> <rgrs08$lbi$1@dont-email.me>
<rgrsu4$rgi$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="10174"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lhiK8hL27ZkQFBI2l0S2xLTDOU4pY28U="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.1.1
Cancel-Lock: sha1:LiTh9ZWaKyQBzTPvZRoaR7MwT58=
View all headers
You don't have to replace "vcvtsi2sd xmm0,xmm0,rax" with something
else - it is already SSE2.

Sorry, it's "... xmm0, rax" that is SSE2, not "... xmm0, xmm0, rax".

But why has AVX this three-parameter-versions and the destination
parameter where the double is written to is the first parameter,
i.e. the second is ignored ?



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 10 Aug 2020 20:02 UTC
References: 1 2 3 4 5 6 7
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 20:02:09 GMT
Organization: Aioe.org NNTP Server
Lines: 25
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f31a712.693750687@nntp.aioe.org>
References: <5f2ffd30.584724406@nntp.aioe.org> <ex1YG.1012029$OD.319863@fx22.am4> <rgreib$rgh$2@dont-email.me> <5f31538c.672368296@nntp.aioe.org> <rgrs08$lbi$1@dont-email.me> <rgrsu4$rgi$1@dont-email.me> <rgs3dj$7j5$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="19213"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18qFHetEZNS/1uHjEcmz25XrQ+ccwvHeoE="
Cancel-Lock: sha1:dRl9dB/xlT5lCiCeVbCypI+Bvk8=
View all headers
On Mon, 10 Aug 2020 20:24:51 +0200, Bonita Montero
<Bonita.Montero@nospicedham.gmail.com> wrote:
....

But why has AVX this three-parameter-versions and the destination
parameter where the double is written to is the first parameter,
i.e. the second is ignored ?

You can better see the value of the three-parameter versions in an
instruction like:

VADDSD xmm1,xmm2,xmm3

That adds xmm2 and xmm3 and puts the result into xmm1, but doesn't
change xmm2 (which is the point).

so instead of:

movsd xmm1,xmm2
addsd xmm1,xmm3

you can do it with just one instruction.
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Organization: Aioe.org NNTP Server
Date: Mon, 10 Aug 2020 20:02 UTC
References: 1 2 3 4
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: aen...@nospicedham.spamtrap.com
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 20:02:25 GMT
Organization: Aioe.org NNTP Server
Lines: 18
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <5f31a7c9.693933046@nntp.aioe.org>
References: <5f2ffd30.584724406@nntp.aioe.org> <ex1YG.1012029$OD.319863@fx22.am4> <5f3139c5.665769343@nntp.aioe.org> <1so2jfh0d34kkdrdn4q1qje85a9pn1ro31@4ax.com>
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="19226"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18yRXjeH4US1ONXwMzbOQNRrFlibg2HfbM="
Cancel-Lock: sha1:P0gd6kxOs0+chp6WmbgUghkXkUs=
View all headers
On Mon, 10 Aug 2020 11:15:40 -0400, George Neuner
<gneuner2@nospicedham.comcast.net> wrote:
....

There is no avx in the flags.
Could it be that buster doesn't support avx?


The i7-8700 [if that is the correct CPU] supports both AVX and AVX2.
Somehow it is not being detected properly.

It definitely is a coffee lake.

Is someone out there with a natively installed debian buster on that
cpu, who could show what's in the /proc/cpuinfo there?
--
aen



Subject: Re: virtualbox vcvtsi2sd illegal instruction
From: Bonita Montero
Newsgroups: comp.lang.asm.x86
Organization: A noiseless patient Spider
Date: Mon, 10 Aug 2020 20:22 UTC
References: 1 2 3 4 5 6 7 8
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@nospicedham.gmail.com (Bonita Montero)
Newsgroups: comp.lang.asm.x86
Subject: Re: virtualbox vcvtsi2sd illegal instruction
Date: Mon, 10 Aug 2020 22:22:35 +0200
Organization: A noiseless patient Spider
Lines: 5
Approved: fbkotler@myfairpoint.net - comp.lang.asm.x86 moderation team.
Message-ID: <rgsaab$lka$1@dont-email.me>
References: <5f2ffd30.584724406@nntp.aioe.org>
<ex1YG.1012029$OD.319863@fx22.am4> <rgreib$rgh$2@dont-email.me>
<5f31538c.672368296@nntp.aioe.org> <rgrs08$lbi$1@dont-email.me>
<rgrsu4$rgi$1@dont-email.me> <rgs3dj$7j5$1@dont-email.me>
<5f31a712.693750687@nntp.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="e67c18b5999f224536cc220a1eb8e30c";
logging-data="24856"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18FdpJtqS5Stf+T7daCJTIqdvnZrF26O/Q="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.1.1
Cancel-Lock: sha1:lAYYSouzK5B51Uz3+jH1kOMSF9Y=
View all headers
You can better see the value of the three-parameter versions in an
instruction like:

No, it's just more confusing.



1
rocksolid light 0.7.2
clearneti2ptor