diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-21 00:20:27 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2011-12-21 00:20:27 +0000 |
commit | 1d8efaba7e9517c95a67f5ec589a8a1329b90a00 (patch) | |
tree | 3947684fd99e2b7ec00c6162ae32ee18127fc2e3 /llvm/lib/Target/Mips/MipsISelLowering.cpp | |
parent | 410ce9cb44fa1dca9ddc9b1c139e1083d382ce4f (diff) | |
download | bcm5719-llvm-1d8efaba7e9517c95a67f5ec589a8a1329b90a00.tar.gz bcm5719-llvm-1d8efaba7e9517c95a67f5ec589a8a1329b90a00.zip |
Expand 64-bit CTLZ nodes if target architecture does not support it. Add test
case for DCLO and DCLZ.
llvm-svn: 147022
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index fbfcf8d839f..0e3a10c4083 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -222,8 +222,10 @@ MipsTargetLowering(MipsTargetMachine &TM) setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand); } - if (!Subtarget->hasBitCount()) + if (!Subtarget->hasBitCount()) { setOperationAction(ISD::CTLZ, MVT::i32, Expand); + setOperationAction(ISD::CTLZ, MVT::i64, Expand); + } if (!Subtarget->hasSwap()) { setOperationAction(ISD::BSWAP, MVT::i32, Expand); |