[llvm-commits] [llvm] r74938 - /llvm/trunk/lib/Target/ARM/ARMInstrInfo.td

Evan Cheng evan.cheng at apple.com
Tue Jul 7 12:16:57 PDT 2009


Author: evancheng
Date: Tue Jul  7 14:16:24 2009
New Revision: 74938

URL: http://llvm.org/viewvc/llvm-project?rev=74938&view=rev
Log:
Add BX and BXr9 encodings. Patch by Sean Callanan.

Modified:
    llvm/trunk/lib/Target/ARM/ARMInstrInfo.td

Modified: llvm/trunk/lib/Target/ARM/ARMInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMInstrInfo.td?rev=74938&r1=74937&r2=74938&view=diff

==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMInstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM/ARMInstrInfo.td Tue Jul  7 14:16:24 2009
@@ -618,7 +618,11 @@
     // ARMv4T
     def BX : ABXIx2<(outs), (ins GPR:$func, variable_ops),
                      "mov lr, pc\n\tbx $func",
-                    [(ARMcall_nolink GPR:$func)]>, Requires<[IsNotDarwin]>;
+                    [(ARMcall_nolink GPR:$func)]>, Requires<[IsNotDarwin]> {
+      let Inst{7-4}   = 0b0001;
+      let Inst{19-8}  = 0b111111111111;
+      let Inst{27-20} = 0b00010010;
+    }
   }
 }
 
@@ -647,7 +651,11 @@
     // ARMv4T
     def BXr9 : ABXIx2<(outs), (ins GPR:$func, variable_ops),
                      "mov lr, pc\n\tbx $func",
-                    [(ARMcall_nolink GPR:$func)]>, Requires<[IsDarwin]>;
+                    [(ARMcall_nolink GPR:$func)]>, Requires<[IsDarwin]> {
+      let Inst{7-4}   = 0b0001;
+      let Inst{19-8}  = 0b111111111111;
+      let Inst{27-20} = 0b00010010;
+    }
   }
 }
 





More information about the llvm-commits mailing list