summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorZoran Jovanovic <zoran.jovanovic@imgtec.com>2014-02-28 18:17:08 +0000
committerZoran Jovanovic <zoran.jovanovic@imgtec.com>2014-02-28 18:17:08 +0000
commit7c6c36d92d2cf9758fe2880573763f89a3ef575f (patch)
tree317697e50357ed32af36ba2a66686d6217a23201 /llvm
parentd6ed44f92642008279c24ed080897a251321400f (diff)
downloadbcm5719-llvm-7c6c36d92d2cf9758fe2880573763f89a3ef575f.tar.gz
bcm5719-llvm-7c6c36d92d2cf9758fe2880573763f89a3ef575f.zip
Fixed encoding of SYSCALL microMIPS instruction.
llvm-svn: 202523
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/Mips/MicroMipsInstrFormats.td2
-rw-r--r--llvm/test/MC/Mips/micromips-control-instructions.s10
2 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Target/Mips/MicroMipsInstrFormats.td b/llvm/lib/Target/Mips/MicroMipsInstrFormats.td
index 21e5707e91e..9382099c9a0 100644
--- a/llvm/lib/Target/Mips/MicroMipsInstrFormats.td
+++ b/llvm/lib/Target/Mips/MicroMipsInstrFormats.td
@@ -303,7 +303,7 @@ class SYS_FM_MM : MMArch {
bits<32> Inst;
let Inst{31-26} = 0x0;
let Inst{25-16} = code_;
- let Inst{15-6} = 0x22b;
+ let Inst{15-6} = 0x22d;
let Inst{5-0} = 0x3c;
}
diff --git a/llvm/test/MC/Mips/micromips-control-instructions.s b/llvm/test/MC/Mips/micromips-control-instructions.s
index 07fd777c9e8..632fb5390b8 100644
--- a/llvm/test/MC/Mips/micromips-control-instructions.s
+++ b/llvm/test/MC/Mips/micromips-control-instructions.s
@@ -12,8 +12,8 @@
# CHECK-EL: break # encoding: [0x00,0x00,0x07,0x00]
# CHECK-EL: break 7, 0 # encoding: [0x07,0x00,0x07,0x00]
# CHECK-EL: break 7, 5 # encoding: [0x07,0x00,0x47,0x01]
-# CHECK-EL: syscall # encoding: [0x00,0x00,0xfc,0x8a]
-# CHECK-EL: syscall 13396 # encoding: [0x54,0x00,0xfc,0x8a]
+# CHECK-EL: syscall # encoding: [0x00,0x00,0x7c,0x8b]
+# CHECK-EL: syscall 396 # encoding: [0x8c,0x01,0x7c,0x8b]
# CHECK-EL: eret # encoding: [0x00,0x00,0x7c,0xf3]
# CHECK-EL: deret # encoding: [0x00,0x00,0x7c,0xe3]
# CHECK-EL: di # encoding: [0x00,0x00,0x7c,0x47]
@@ -29,8 +29,8 @@
# CHECK-EB: break # encoding: [0x00,0x00,0x00,0x07]
# CHECK-EB: break 7, 0 # encoding: [0x00,0x07,0x00,0x07]
# CHECK-EB: break 7, 5 # encoding: [0x00,0x07,0x01,0x47]
-# CHECK-EB: syscall # encoding: [0x00,0x00,0x8a,0xfc]
-# CHECK-EB: syscall 13396 # encoding: [0x00,0x54,0x8a,0xfc]
+# CHECK-EB: syscall # encoding: [0x00,0x00,0x8b,0x7c]
+# CHECK-EB: syscall 396 # encoding: [0x01,0x8c,0x8b,0x7c]
# CHECK-EB: eret # encoding: [0x00,0x00,0xf3,0x7c]
# CHECK-EB: deret # encoding: [0x00,0x00,0xe3,0x7c]
# CHECK-EB: di # encoding: [0x00,0x00,0x47,0x7c]
@@ -45,7 +45,7 @@
break 7
break 7,5
syscall
- syscall 0x3454
+ syscall 0x18c
eret
deret
di
OpenPOWER on IntegriCloud