From 862023fcb24c6057a453b75433e88aba19a73119 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 22 Jan 2010 20:16:37 +0000 Subject: [PATCH] Mark EH_RETURN64 as CodeGenOnly. llvm-svn: 94205 --- llvm/lib/Target/X86/X86Instr64bit.td | 2 +- llvm/test/MC/AsmParser/X86/x86_instructions.s | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86Instr64bit.td b/llvm/lib/Target/X86/X86Instr64bit.td index 08e1dd1e060d..9037ba6aa96e 100644 --- a/llvm/lib/Target/X86/X86Instr64bit.td +++ b/llvm/lib/Target/X86/X86Instr64bit.td @@ -207,7 +207,7 @@ let isBranch = 1, isTerminator = 1, isBarrier = 1, isIndirectBranch = 1 in { // EH Pseudo Instructions // let isTerminator = 1, isReturn = 1, isBarrier = 1, - hasCtrlDep = 1 in { + hasCtrlDep = 1, isCodeGenOnly = 1 in { def EH_RETURN64 : I<0xC3, RawFrm, (outs), (ins GR64:$addr), "ret\t#eh_return, addr: $addr", [(X86ehret GR64:$addr)]>; diff --git a/llvm/test/MC/AsmParser/X86/x86_instructions.s b/llvm/test/MC/AsmParser/X86/x86_instructions.s index 4c5b698d3fc6..ed806ee734f0 100644 --- a/llvm/test/MC/AsmParser/X86/x86_instructions.s +++ b/llvm/test/MC/AsmParser/X86/x86_instructions.s @@ -16,7 +16,9 @@ movl %eax, 10(%ebp, %ebx, 4) // CHECK: movl %eax, 10(,%ebx,4) movl %eax, 10(, %ebx, 4) - +// CHECK: ret + ret + // FIXME: Check that this matches SUB32ri8 // CHECK: subl $1, %eax subl $1, %eax