diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-09 20:37:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-09 20:37:29 +0000 |
commit | 4e6ce5f9c7dea5b75a39d007ac72c7c3177d8758 (patch) | |
tree | 1d9fb6e0cc95143b9c472f8fa24fc369993dfa9e | |
parent | 6d5b8e16462859333db9ad984f05ec2ed1f48f4a (diff) |
legalize readio/writeio into load/stores, fixing CodeGen/X86/io.llx with
the pattern isel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21828 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelPattern.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelPattern.cpp b/lib/Target/X86/X86ISelPattern.cpp index d4b2b1a99e..584d4af3ef 100644 --- a/lib/Target/X86/X86ISelPattern.cpp +++ b/lib/Target/X86/X86ISelPattern.cpp @@ -70,6 +70,15 @@ namespace { setOperationAction(ISD::CTTZ , MVT::i32 , Expand); setOperationAction(ISD::CTLZ , MVT::i32 , Expand); + setOperationAction(ISD::READIO , MVT::i1 , Expand); + setOperationAction(ISD::READIO , MVT::i8 , Expand); + setOperationAction(ISD::READIO , MVT::i16 , Expand); + setOperationAction(ISD::READIO , MVT::i32 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i1 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i8 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i16 , Expand); + setOperationAction(ISD::WRITEIO , MVT::i32 , Expand); + if (!UnsafeFPMath) { setOperationAction(ISD::FSIN , MVT::f64 , Expand); setOperationAction(ISD::FCOS , MVT::f64 , Expand); |