[llvm] r247804 - [SPARC] Both GNU and Solaris as support eq as condition code for integer ops.
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 16 07:41:36 PDT 2015
Author: joerg
Date: Wed Sep 16 09:41:36 2015
New Revision: 247804
URL: http://llvm.org/viewvc/llvm-project?rev=247804&view=rev
Log:
[SPARC] Both GNU and Solaris as support eq as condition code for integer ops.
Modified:
llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
llvm/trunk/test/MC/Sparc/sparc-ctrl-instructions.s
Modified: llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td?rev=247804&r1=247803&r2=247804&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td (original)
+++ llvm/trunk/lib/Target/Sparc/SparcInstrAliases.td Wed Sep 16 09:41:36 2015
@@ -250,6 +250,7 @@ defm : int_cond_alias<"n", 0b0000>;
defm : int_cond_alias<"ne", 0b1001>;
defm : int_cond_alias<"nz", 0b1001>; // same as ne
defm : int_cond_alias<"e", 0b0001>;
+defm : int_cond_alias<"eq", 0b0001>; // same as e
defm : int_cond_alias<"z", 0b0001>; // same as e
defm : int_cond_alias<"g", 0b1010>;
defm : int_cond_alias<"le", 0b0010>;
Modified: llvm/trunk/test/MC/Sparc/sparc-ctrl-instructions.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/Sparc/sparc-ctrl-instructions.s?rev=247804&r1=247803&r2=247804&view=diff
==============================================================================
--- llvm/trunk/test/MC/Sparc/sparc-ctrl-instructions.s (original)
+++ llvm/trunk/test/MC/Sparc/sparc-ctrl-instructions.s Wed Sep 16 09:41:36 2015
@@ -64,6 +64,10 @@
! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22
bz .BB0
+ ! CHECK: be .BB0 ! encoding: [0x02,0b10AAAAAA,A,A]
+ ! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22
+ beq .BB0
+
! CHECK: bg .BB0 ! encoding: [0x14,0b10AAAAAA,A,A]
! CHECK-NEXT: ! fixup A - offset: 0, value: .BB0, kind: fixup_sparc_br22
bg .BB0
More information about the llvm-commits
mailing list