[SPARC] Both GNU and Solaris as support eq as condition code for integer ops.
authorJoerg Sonnenberger <joerg@bec.de>
Wed, 16 Sep 2015 14:41:36 +0000 (14:41 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Wed, 16 Sep 2015 14:41:36 +0000 (14:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247804 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrAliases.td
test/MC/Sparc/sparc-ctrl-instructions.s

index ee202311d35697253127ec665293f74eebbe7b44..d51e2ccc8a35b931ee190c866ab830fa496044ca 100644 (file)
@@ -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>;
index a2608fdba608aea62a643015dc91508993272759..bcb625b17e61b759e28f0613cbe550f9af24e1a4 100644 (file)
         ! 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