From: "Jan Beulich" Subject: Re: test_x86_emulator Date: Tue, 15 Apr 2014 07:49:25 +0100 Message-ID: <534CF2950200007800008C62@nat28.tlf.novell.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> <5348292B.5000102@terremark.com> <534BAD0F0200007800008407@nat28.tlf.novell.com> <534C1AF0.3060707@terremark.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <534C1AF0.3060707@terremark.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Don Slutz Cc: Keir Fraser , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 14.04.14 at 19:29, wrote: > It is more complex then it appears at 1st look. > > -O1: > ... > Testing movdqu (%edx),%xmm4... okay > Testing vmovdqu %ymm2,(%ecx)... skipped > Testing vmovdqu (%edx),%ymm4... skipped > Testing movsd %xmm5,(%ecx)... okay > Testing movaps (%edx),%xmm7... okay > ... > > -O2: > ... > Testing movdqu (%edx),%xmm4... okay > Testing vmovdqu %ymm2,(%ecx)... failed! > make: *** [run] Error 1 Now that's of course very interesting - looks more like a problem with test_x86_emulator.c's use of CPUID then (because you said you do this on an AVX-capable system, the -O1 test shouldn't skip these). > get_fpu (exception_callback=0x402a60 , > exception_callback_arg=0x7fffffffd7d0, > type=X86EMUL_FPU_ymm, ctxt=0x7fffffffdb80) at test_x86_emulator.c:138 > 138 switch ( type ) > (gdb) n > 137 { > (gdb) > 138 switch ( type ) > (gdb) > 154 return X86EMUL_OKAY; > (gdb) > 138 switch ( type ) > (gdb) > 152 return X86EMUL_UNHANDLEABLE; > (gdb) > 138 switch ( type ) > (gdb) > 132 int get_fpu( > (gdb) > 155 } Or a code generation problem: An input of X86EMUL_FPU_ymm should obviously result in execution making to the respective case statement, yet the steps above lead directly to the default one. What gcc version are you using? And could you perhaps make both binaries (-O1 and -O2) available for inspection? Jan