Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: llvm-trunk/lib/Target/X86/X86InstrInfo.td

Issue 1557002: llvm x86 support (Closed)
Patch Set: remove whitespace diff Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « llvm-trunk/lib/Target/X86/X86InstrInfo.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: llvm-trunk/lib/Target/X86/X86InstrInfo.td
===================================================================
--- a/llvm-trunk/lib/Target/X86/X86InstrInfo.td
+++ b/llvm-trunk/lib/Target/X86/X86InstrInfo.td
@@ -640,12 +640,15 @@
// Indirect branches
let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in {
- def JMP32r : I<0xFF, MRM4r, (outs), (ins GR32:$dst), "jmp{l}\t{*}$dst",
+// @LOCALMOD-START
+// NOTE:JMP32m must likely be banned
+ def JMP32r : I<0xFF, MRM4r, (outs), (ins GR32:$dst), "nacljmp\t $dst",
[(brind GR32:$dst)]>;
- def JMP32m : I<0xFF, MRM4m, (outs), (ins i32mem:$dst), "jmp{l}\t{*}$dst",
- [(brind (loadi32 addr:$dst))]>;
-
- def FARJMP16i : Iseg16<0xEA, RawFrm, (outs),
+
+// def JMP32m : I<0xFF, MRM4m, (outs), (ins i32mem:$dst), "jmp{l}\t{*}$dst",
+// [(brind (loadi32 addr:$dst))]>;
+// @LOCALMOD-END
+ def FARJMP16i : Iseg16<0xEA, RawFrm, (outs),
(ins i16imm:$seg, i16imm:$off),
"ljmp{w}\t$seg, $off", []>, OpSize;
def FARJMP32i : Iseg32<0xEA, RawFrm, (outs),
@@ -678,15 +681,17 @@
XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, XMM7,
XMM8, XMM9, XMM10, XMM11, XMM12, XMM13, XMM14, XMM15, EFLAGS],
Uses = [ESP] in {
+// @LOCALMOD-START
+// NOTE: CALL32m must likely be banned
def CALLpcrel32 : Ii32PCRel<0xE8, RawFrm,
(outs), (ins i32imm_pcrel:$dst,variable_ops),
"call\t$dst", []>;
def CALL32r : I<0xFF, MRM2r, (outs), (ins GR32:$dst, variable_ops),
- "call\t{*}$dst", [(X86call GR32:$dst)]>;
- def CALL32m : I<0xFF, MRM2m, (outs), (ins i32mem:$dst, variable_ops),
- "call\t{*}$dst", [(X86call (loadi32 addr:$dst))]>;
-
- def FARCALL16i : Iseg16<0x9A, RawFrm, (outs),
+ "naclcall\t$dst", [(X86call GR32:$dst)]>;
+// def CALL32m : I<0xFF, MRM2m, (outs), (ins i32mem:$dst, variable_ops),
+// "call\t{*}$dst", [(X86call (loadi32 addr:$dst))]>;
+// @LOCALMOD-END
+ def FARCALL16i : Iseg16<0x9A, RawFrm, (outs),
(ins i16imm:$seg, i16imm:$off),
"lcall{w}\t$seg, $off", []>, OpSize;
def FARCALL32i : Iseg32<0x9A, RawFrm, (outs),
« no previous file with comments | « llvm-trunk/lib/Target/X86/X86InstrInfo.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698