<div dir="ltr">Testcases?<div><br></div><div>-eric</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 11, 2013 at 4:19 PM, Kay Tiong Khoo <span dir="ltr"><<a href="mailto:kkhoo@perfwizard.com" target="_blank">kkhoo@perfwizard.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: kkhoo<br>
Date: Mon Feb 11 18:19:12 2013<br>
New Revision: 174920<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=174920&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=174920&view=rev</a><br>
Log:<br>
Added 0x0D to 2-byte opcode extension table for prefetch* variants<br>
Fixed decode of existing 3dNow prefetchw instruction<br>
Intel is scheduled to add a compatible prefetchw (same encoding) to future CPUs<br>
<br>
Modified:<br>
    llvm/trunk/lib/Target/X86/X86Instr3DNow.td<br>
    llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp<br>
<br>
Modified: llvm/trunk/lib/Target/X86/X86Instr3DNow.td<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Instr3DNow.td?rev=174920&r1=174919&r2=174920&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86Instr3DNow.td?rev=174920&r1=174919&r2=174920&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/lib/Target/X86/X86Instr3DNow.td (original)<br>
+++ llvm/trunk/lib/Target/X86/X86Instr3DNow.td Mon Feb 11 18:19:12 2013<br>
@@ -87,12 +87,10 @@ defm PMULHRW  : I3DNow_binop_rm_int<0xB7<br>
 def FEMMS : I3DNow<0x0E, RawFrm, (outs), (ins), "femms", [(int_x86_mmx_femms)]>;<br>
<br>
 def PREFETCH  : I3DNow<0x0D, MRM0m, (outs), (ins i32mem:$addr),<br>
-                       "prefetch $addr", []>;<br>
+                       "prefetch\t$addr", []>;<br>
<br>
-// FIXME: Diassembler gets a bogus decode conflict.<br>
-let isAsmParserOnly = 1 in<br>
 def PREFETCHW : I3DNow<0x0D, MRM1m, (outs), (ins i16mem:$addr),<br>
-                       "prefetchw $addr", []>;<br>
+                       "prefetchw\t$addr", []>;<br>
<br>
 // "3DNowA" instructions<br>
 defm PF2IW    : I3DNow_conv_rm_int<0x1C, "pf2iw", "a">;<br>
<br>
Modified: llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp?rev=174920&r1=174919&r2=174920&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp?rev=174920&r1=174919&r2=174920&view=diff</a><br>

==============================================================================<br>
--- llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp (original)<br>
+++ llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp Mon Feb 11 18:19:12 2013<br>
@@ -119,6 +119,7 @@ namespace X86Local {<br>
 #define TWO_BYTE_EXTENSION_TABLES \<br>
   EXTENSION_TABLE(00)             \<br>
   EXTENSION_TABLE(01)             \<br>
+  EXTENSION_TABLE(0d)             \<br>
   EXTENSION_TABLE(18)             \<br>
   EXTENSION_TABLE(71)             \<br>
   EXTENSION_TABLE(72)             \<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>