From mboxrd@z Thu Jan 1 00:00:00 1970 From: Don Slutz Subject: Re: [PATCH optional v2 01/10] hvm/hpet: Add manual unit test code. Date: Fri, 11 Apr 2014 13:40:59 -0400 Message-ID: <5348292B.5000102@terremark.com> References: <1396967094-29484-1-git-send-email-dslutz@verizon.com> <1396967094-29484-2-git-send-email-dslutz@verizon.com> <53458CB40200007800007598@nat28.tlf.novell.com> <534592D7.2020805@terremark.com> <534652300200007800007727@nat28.tlf.novell.com> <53475944.3060100@terremark.com> <5347B9BD0200007800007DDB@nat28.tlf.novell.com> <5347D8C4.8080500@terremark.com> <5347F7A10200007800007F74@nat28.tlf.novell.com> <5347E4B1.3080505@terremark.com> <534822E202000078000080AC@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <534822E202000078000080AC@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Keir Fraser , Don Slutz , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 04/11/14 11:14, Jan Beulich wrote: >>>> On 11.04.14 at 14:48, wrote: >> On 04/11/14 08:09, Jan Beulich wrote: >>>>>> On 11.04.14 at 13:57, wrote: >>>> I see that that test is not passing: >>>> >>>> make -C tools/tests/x86_emulator run >>>> ... >>>> Testing daa/das (all inputs)... skipped >>>> Testing movq %mm3,(%ecx)... okay >>>> Testing movq (%edx),%mm5... okay >>>> Testing movdqu %xmm2,(%ecx)... okay >>>> Testing movdqu (%edx),%xmm4... okay >>>> Testing vmovdqu %ymm2,(%ecx)... failed! >>> Odd - it worked the last time I tried. Was that perhaps on an AVX- >>> incapable system? >> Is avx from /proc/cpuinfo: > Interesting - I just tried it again, and it works for me. Could of course > be an issue with your glibc clobbering %ymm2 - I always wondered for > how long we would get away with this not really correct register usage. > But otoh I would have expected the earlier test using %xmm2 to fail > then too... Not sure what I can do to help. A quick gdb says: Testing movzxwd (%%eax),%%ecx... okay Testing xadd %%ax,(%%ecx)... okay Testing dec %%ax... okay Testing lea 8(%%ebp),%%eax... okay Testing daa/das (all inputs)... skipped Testing movq %mm3,(%ecx)... okay Testing movq (%edx),%mm5... okay Breakpoint 4, main (argc=, argv=) at test_x86_emulator.c:610 610 if ( (rc != X86EMUL_OKAY) || memcmp(res, res + 8, 32) ) (gdb) p rc $3 = 0 (gdb) c Continuing. Testing movdqu %xmm2,(%ecx)... okay Testing movdqu (%edx),%xmm4... okay Breakpoint 3, main (argc=, argv=) at test_x86_emulator.c:661 661 if ( (rc != X86EMUL_OKAY) || memcmp(res, res + 16, 64) ) (gdb) p rc $4 = 7 (gdb) q This is from 4.3.1... -Don Slutz > Jan >