[dsymutil] Add support for debug_loc section.
[oota-llvm.git] / test / MC / Mips / mips-alu-instructions.s
index 68a8da07c2b1e097516a006c2d5a458894f740fc..b25394b39a67763286d71ea9ca84bd22a5a6e0f1 100644 (file)
     negu   $6,$7
     move   $7,$8
     rdhwr   $5, $29
+
+#------------------------------------------------------------------------------
+# Shortcuts for arithmetic instructions
+#------------------------------------------------------------------------------
+
+# CHECK:       add     $9, $9, $3      # encoding: [0x20,0x48,0x23,0x01]
+# CHECK:       addu    $9, $9, $3      # encoding: [0x21,0x48,0x23,0x01]
+# CHECK:       addi    $9, $9, 10      # encoding: [0x0a,0x00,0x29,0x21]
+# CHECK:       addiu   $9, $9, 10      # encoding: [0x0a,0x00,0x29,0x25]
+# CHECK:       and     $5, $5, $6      # encoding: [0x24,0x28,0xa6,0x00]
+# CHECK:       mul     $9, $9, $3      # encoding: [0x02,0x48,0x23,0x71]
+# CHECK:       or      $2, $2, $4      # encoding: [0x25,0x10,0x44,0x00]
+# CHECK:       sub     $9, $9, $3      # encoding: [0x22,0x48,0x23,0x01]
+# CHECK:       subu    $9, $9, $3      # encoding: [0x23,0x48,0x23,0x01]
+# CHECK:       addi    $9, $9, -10     # encoding: [0xf6,0xff,0x29,0x21]
+# CHECK:       addiu   $9, $9, -10     # encoding: [0xf6,0xff,0x29,0x25]
+# CHECK:       xor     $9, $9, $10     # encoding: [0x26,0x48,0x2a,0x01]
+       add     $9, $3
+       addu    $9, $3
+       add     $9, 10
+       addu    $9, 10
+       and     $5, $6
+       mul     $9, $3
+       or      $2, $4
+       sub     $9, $3
+       subu    $9, $3
+       sub     $9, 10
+       subu    $9, 10
+       xor     $9, $10