Fix encoding for ARM BXJ instruction.
authorJim Grosbach <grosbach@apple.com>
Wed, 13 Jul 2011 20:25:01 +0000 (20:25 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 13 Jul 2011 20:25:01 +0000 (20:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135077 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrInfo.td

index 4a576e619a58fd4ad1c39e82dedcf95a3e31b002..02c9edf50740a7e266dee4898769209b909438a3 100644 (file)
@@ -1539,12 +1539,14 @@ def BLXi : AXI<(outs), (ins br_target:$target), BrMiscFrm, NoItinerary,
   let Inst{24} = target{0};
 }
 
-// Branch and Exchange Jazelle -- for disassembly only
+// Branch and Exchange Jazelle
 def BXJ : ABI<0b0001, (outs), (ins GPR:$func), NoItinerary, "bxj", "\t$func",
-              [/* For disassembly only; pattern left blank */]> {
+              [/* pattern left blank */]> {
+  bits<4> func;
   let Inst{23-20} = 0b0010;
-  //let Inst{19-8} = 0xfff;
+  let Inst{19-8} = 0xfff;
   let Inst{7-4} = 0b0010;
+  let Inst{3-0} = func;
 }
 
 // Tail calls.