<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SDE Fails on bextr instruction in Intel® ISA Extensions</title>
    <link>https://community.intel.com/t5/Intel-ISA-Extensions/SDE-Fails-on-bextr-instruction/m-p/1570738#M7041</link>
    <description>&lt;P&gt;Hi, I am new to SDE and trying to understand how it works. I am trying to run a binary that I'll unfortunately have to keep private due to its sensitivity. I am running SDE version 9.33.0 on Ubuntu 22.04 (in VMware).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the binary natively on my machine, SIGILL is raised and the program dies. If I peak at what's happening in GDB, the offending instruction is &lt;STRONG&gt;bextr $0x408,%eax,%edx&lt;/STRONG&gt;. I don't know much about this instruction, but a quick search showed it was part of the BMI extensions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to use SDE to run this binary, I simply apply the bmi1 flag:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sde64 -bmi1 -- &amp;lt;binary&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, I am met with the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TID 0 SDE-ERROR: Executed instruction not valid for host's cpuid: 0x7fcad9a82056: bextr edx, eax, 0x408
Notice: No chip or cpuid.def file were given, so host's cpuid was used for chip check. Image: &amp;lt;REDACTED&amp;gt; (in multi-region image, region# 1)
Function: &amp;lt;REDACTED&amp;gt;
Instruction bytes are: 8f ea 78 10 d0 08 04 00 00 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I've also tried other flags like bmi2, avx, etc., basically as hail mary attempts, but I always get the same error. I imagine the fix is straightforward, so if anyone can point me in the right direction, I'd appreciate it. Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 22:38:51 GMT</pubDate>
    <dc:creator>soppressata</dc:creator>
    <dc:date>2024-02-08T22:38:51Z</dc:date>
    <item>
      <title>SDE Fails on bextr instruction</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/SDE-Fails-on-bextr-instruction/m-p/1570738#M7041</link>
      <description>&lt;P&gt;Hi, I am new to SDE and trying to understand how it works. I am trying to run a binary that I'll unfortunately have to keep private due to its sensitivity. I am running SDE version 9.33.0 on Ubuntu 22.04 (in VMware).&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the binary natively on my machine, SIGILL is raised and the program dies. If I peak at what's happening in GDB, the offending instruction is &lt;STRONG&gt;bextr $0x408,%eax,%edx&lt;/STRONG&gt;. I don't know much about this instruction, but a quick search showed it was part of the BMI extensions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to use SDE to run this binary, I simply apply the bmi1 flag:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sde64 -bmi1 -- &amp;lt;binary&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;However, I am met with the following error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TID 0 SDE-ERROR: Executed instruction not valid for host's cpuid: 0x7fcad9a82056: bextr edx, eax, 0x408
Notice: No chip or cpuid.def file were given, so host's cpuid was used for chip check. Image: &amp;lt;REDACTED&amp;gt; (in multi-region image, region# 1)
Function: &amp;lt;REDACTED&amp;gt;
Instruction bytes are: 8f ea 78 10 d0 08 04 00 00 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I've also tried other flags like bmi2, avx, etc., basically as hail mary attempts, but I always get the same error. I imagine the fix is straightforward, so if anyone can point me in the right direction, I'd appreciate it. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 22:38:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/SDE-Fails-on-bextr-instruction/m-p/1570738#M7041</guid>
      <dc:creator>soppressata</dc:creator>
      <dc:date>2024-02-08T22:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: SDE Fails on bextr instruction</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/SDE-Fails-on-bextr-instruction/m-p/1570977#M7042</link>
      <description>&lt;P&gt;The encoding in your message is for AMD version of the BEXTR instruction.&lt;/P&gt;
&lt;P&gt;There are instructions in AMD XOP family were Intel and AMD has similar instructions but with different encoding.&lt;/P&gt;
&lt;P&gt;Intel SDE does not emulate AMD instructions, and you must run on AMD CPU to execute them (or rebuild the binary with Intel target).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 12:55:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/SDE-Fails-on-bextr-instruction/m-p/1570977#M7042</guid>
      <dc:creator>AdyT_Intel</dc:creator>
      <dc:date>2024-02-09T12:55:00Z</dc:date>
    </item>
  </channel>
</rss>

