summaryrefslogtreecommitdiff
path: root/test/MC/Mips/mips-control-instructions.s
diff options
context:
space:
mode:
authorVladimir Medic <Vladimir.Medic@imgtec.com>2013-08-12 13:07:23 +0000
committerVladimir Medic <Vladimir.Medic@imgtec.com>2013-08-12 13:07:23 +0000
commit809313970fc98bba6f36a332adfa3e5fef4110b3 (patch)
tree1620db87768204660ebce15615e016b652ea1ab2 /test/MC/Mips/mips-control-instructions.s
parentdcef6a7400d51526a04a18e274bd579da262e9ad (diff)
downloadllvm-809313970fc98bba6f36a332adfa3e5fef4110b3.tar.gz
llvm-809313970fc98bba6f36a332adfa3e5fef4110b3.tar.bz2
llvm-809313970fc98bba6f36a332adfa3e5fef4110b3.tar.xz
This patch implements ei and di instructions for mips. Test cases are added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/mips-control-instructions.s')
-rw-r--r--test/MC/Mips/mips-control-instructions.s20
1 files changed, 19 insertions, 1 deletions
diff --git a/test/MC/Mips/mips-control-instructions.s b/test/MC/Mips/mips-control-instructions.s
index ee709402af..90d479db86 100644
--- a/test/MC/Mips/mips-control-instructions.s
+++ b/test/MC/Mips/mips-control-instructions.s
@@ -10,6 +10,12 @@
# CHECK32: syscall 13396 # encoding: [0x00,0x0d,0x15,0x0c]
# CHECK32: eret # encoding: [0x42,0x00,0x00,0x18]
# CHECK32: deret # encoding: [0x42,0x00,0x00,0x1f]
+# CHECK32: di # encoding: [0x41,0x60,0x60,0x00]
+# CHECK32: di # encoding: [0x41,0x60,0x60,0x00]
+# CHECK32: di $10 # encoding: [0x41,0x6a,0x60,0x00]
+# CHECK32: ei # encoding: [0x41,0x60,0x60,0x20]
+# CHECK32: ei # encoding: [0x41,0x60,0x60,0x20]
+# CHECK32: ei $10 # encoding: [0x41,0x6a,0x60,0x20]
# CHECK64: break # encoding: [0x00,0x00,0x00,0x0d]
# CHECK64: break 7, 0 # encoding: [0x00,0x07,0x00,0x0d]
@@ -18,7 +24,12 @@
# CHECK64: syscall 13396 # encoding: [0x00,0x0d,0x15,0x0c]
# CHECK64: eret # encoding: [0x42,0x00,0x00,0x18]
# CHECK64: deret # encoding: [0x42,0x00,0x00,0x1f]
-
+# CHECK64: di # encoding: [0x41,0x60,0x60,0x00]
+# CHECK64: di # encoding: [0x41,0x60,0x60,0x00]
+# CHECK64: di $10 # encoding: [0x41,0x6a,0x60,0x00]
+# CHECK64: ei # encoding: [0x41,0x60,0x60,0x20]
+# CHECK64: ei # encoding: [0x41,0x60,0x60,0x20]
+# CHECK64: ei $10 # encoding: [0x41,0x6a,0x60,0x20]
break
break 7
break 7,5
@@ -26,3 +37,10 @@
syscall 0x3454
eret
deret
+ di
+ di $0
+ di $10
+
+ ei
+ ei $0
+ ei $10