From 3f1118310eddbbc0d5972e8564c7ac9b91464a33 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 5 Feb 2010 22:49:06 +0000 Subject: [PATCH] fix a case where we'd mis-encode fisttp because of an incorrect (and redundant with a correct one) pattern that was added for the disassembler. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95446 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrFPStack.td | 1 - test/MC/AsmParser/X86/x86_32-encoding.s | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 test/MC/AsmParser/X86/x86_32-encoding.s diff --git a/lib/Target/X86/X86InstrFPStack.td b/lib/Target/X86/X86InstrFPStack.td index 71ec178e301..e22a903739d 100644 --- a/lib/Target/X86/X86InstrFPStack.td +++ b/lib/Target/X86/X86InstrFPStack.td @@ -339,7 +339,6 @@ def FICOMP32m: FPI<0xDA, MRM3m, (outs), (ins i32mem:$src), "ficomp{l}\t$src">; def FCOM64m : FPI<0xDC, MRM2m, (outs), (ins f64mem:$src), "fcom{ll}\t$src">; def FCOMP64m : FPI<0xDC, MRM3m, (outs), (ins f64mem:$src), "fcomp{ll}\t$src">; -def FISTTP32m: FPI<0xDD, MRM1m, (outs i32mem:$dst), (ins), "fisttp{l}\t$dst">; def FRSTORm : FPI<0xDD, MRM4m, (outs f32mem:$dst), (ins), "frstor\t$dst">; def FSAVEm : FPI<0xDD, MRM6m, (outs f32mem:$dst), (ins), "fnsave\t$dst">; def FNSTSWm : FPI<0xDD, MRM7m, (outs f32mem:$dst), (ins), "fnstsw\t$dst">; diff --git a/test/MC/AsmParser/X86/x86_32-encoding.s b/test/MC/AsmParser/X86/x86_32-encoding.s new file mode 100644 index 00000000000..3afdccaf95b --- /dev/null +++ b/test/MC/AsmParser/X86/x86_32-encoding.s @@ -0,0 +1,5 @@ +// RUN: llvm-mc -triple i386-unknown-unknown %s -show-encoding | FileCheck %s + +fisttpl 3735928559(%ebx,%ecx,8) + +# CHECK: encoding: [0xdb,0x8c,0xcb,0xef,0xbe,0xad,0xde] -- 2.34.1