diff options
author | Nate Begeman <natebegeman@mac.com> | 2006-01-14 03:14:10 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2006-01-14 03:14:10 +0000 |
commit | d88fc03602947b5baa35c8b09fe8bcfa2b4a03c1 (patch) | |
tree | b2f310c94eb32a8be570abd8242cbbd5a128253d /lib/Target/IA64 | |
parent | b69c190c26da6d83391a4956ed2dfc0fe45b5bfa (diff) | |
download | external_llvm-d88fc03602947b5baa35c8b09fe8bcfa2b4a03c1.zip external_llvm-d88fc03602947b5baa35c8b09fe8bcfa2b4a03c1.tar.gz external_llvm-d88fc03602947b5baa35c8b09fe8bcfa2b4a03c1.tar.bz2 |
bswap implementation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/IA64')
-rw-r--r-- | lib/Target/IA64/IA64ISelLowering.cpp | 1 | ||||
-rw-r--r-- | lib/Target/IA64/IA64ISelPattern.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/IA64/IA64ISelLowering.cpp b/lib/Target/IA64/IA64ISelLowering.cpp index 91d3f35..f56a02b 100644 --- a/lib/Target/IA64/IA64ISelLowering.cpp +++ b/lib/Target/IA64/IA64ISelLowering.cpp @@ -82,6 +82,7 @@ IA64TargetLowering::IA64TargetLowering(TargetMachine &TM) setOperationAction(ISD::CTLZ , MVT::i64 , Expand); setOperationAction(ISD::ROTL , MVT::i64 , Expand); setOperationAction(ISD::ROTR , MVT::i64 , Expand); + setOperationAction(ISD::BSWAP, MVT::i64 , Expand); // mux @rev // Not implemented yet. setOperationAction(ISD::STACKSAVE, MVT::Other, Expand); diff --git a/lib/Target/IA64/IA64ISelPattern.cpp b/lib/Target/IA64/IA64ISelPattern.cpp index 3aeb159..3a1a413 100644 --- a/lib/Target/IA64/IA64ISelPattern.cpp +++ b/lib/Target/IA64/IA64ISelPattern.cpp @@ -98,6 +98,7 @@ namespace { setOperationAction(ISD::CTLZ , MVT::i64 , Expand); setOperationAction(ISD::ROTL , MVT::i64 , Expand); setOperationAction(ISD::ROTR , MVT::i64 , Expand); + setOperationAction(ISD::BSWAP, MVT::i64 , Expand); // mux @rev // FIXME: implement mulhs (xma.h) and mulhu (xma.hu) setOperationAction(ISD::MULHS , MVT::i64 , Expand); setOperationAction(ISD::MULHU , MVT::i64 , Expand); |