[SPARC] Add mulscc.
authorJoerg Sonnenberger <joerg@bec.de>
Thu, 17 Sep 2015 20:54:26 +0000 (20:54 +0000)
committerJoerg Sonnenberger <joerg@bec.de>
Thu, 17 Sep 2015 20:54:26 +0000 (20:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247940 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcInstrInfo.td
test/MC/Sparc/sparc-alu-instructions.s

index 0beef34ba8539c6496eb2c3bb4397309f0278a55..d7649dafd4db0108adf3417230d964c060feeb9e 100644 (file)
@@ -628,6 +628,10 @@ let Defs = [Y, ICC] in {
   defm SMULCC : F3_12np<"smulcc", 0b011011>;
 }
 
+let Defs = [Y, ICC], Uses = [Y, ICC] in {
+  defm MULSCC : F3_12np<"mulscc", 0b100100>;
+}
+
 // Section B.19 - Divide Instructions, p. 115
 let Uses = [Y], Defs = [Y] in {
   defm UDIV : F3_12np<"udiv", 0b001110>;
index 98caf1d6d6733823b544b57b8cd39ff83823f846..b08ab43f13e956fa8c843588db689c8526c0dee4 100644 (file)
         ! CHECK:  smulcc %g2, %g1, %g3            ! encoding: [0x86,0xd8,0x80,0x01]
         smulcc %g2, %g1, %g3
 
+        ! CHECK:  mulscc %g2, %g1, %g3            ! encoding: [0x87,0x20,0x80,0x01]
+        mulscc %g2, %g1, %g3
+
+        ! CHECK:  mulscc %g2, 254, %g3            ! encoding: [0x87,0x20,0xa0,0xfe]
+        mulscc %g2, 254, %g3
+
         ! CHECK:  udivcc %g2, %g1, %g3            ! encoding: [0x86,0xf0,0x80,0x01]
         udivcc %g2, %g1, %g3