[PATCH] D17074: Sparc back-end. Repair of incorrect floating-point condition encodings.

Chris Dewhurst via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 07:39:17 PST 2016


lero_chris created this revision.
lero_chris added a reviewer: venkatra.
lero_chris added a subscriber: llvm-commits.
Herald added a subscriber: jyknight.

The encodings for floating point conditions A(lways) and N(ever) are in the wrong order, per Sparc manual v8 page 121. This change corrects that mistake.

http://reviews.llvm.org/D17074

Files:
  SparcInstrAliases.td

Index: SparcInstrAliases.td
===================================================================
--- SparcInstrAliases.td
+++ SparcInstrAliases.td
@@ -267,9 +267,9 @@
 defm : int_cond_alias<"vc",   0b1111>;
 defm : int_cond_alias<"vs",   0b0111>;
 
-defm : fp_cond_alias<"a",     0b0000>;
-defm : fp_cond_alias<"",      0b0000>; // same as a; gnu asm, not in manual
-defm : fp_cond_alias<"n",     0b1000>;
+defm : fp_cond_alias<"a",     0b1000>;
+defm : fp_cond_alias<"",      0b1000>; // same as a; gnu asm, not in manual
+defm : fp_cond_alias<"n",     0b0000>;
 defm : fp_cond_alias<"u",     0b0111>;
 defm : fp_cond_alias<"g",     0b0110>;
 defm : fp_cond_alias<"ug",    0b0101>;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17074.47451.patch
Type: text/x-patch
Size: 682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160210/f6a8c7b9/attachment.bin>


More information about the llvm-commits mailing list