diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-18 12:26:13 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-07-18 12:26:13 +0000 |
commit | 39f2a224014c3a81731288b458703acf5cc3d43a (patch) | |
tree | e433477c15c3bcd8e940870acf747f442501e73e /llvm/lib/Target/SystemZ/SystemZISelLowering.cpp | |
parent | c3b10f067765e477225f09c568907f19fc279b31 (diff) | |
download | bcm5719-llvm-39f2a224014c3a81731288b458703acf5cc3d43a.tar.gz bcm5719-llvm-39f2a224014c3a81731288b458703acf5cc3d43a.zip |
Provide expansion for ct* intrinsics
llvm-svn: 76311
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZISelLowering.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp index 2365d59d22b..b1d42cb18ad 100644 --- a/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp +++ b/llvm/lib/Target/SystemZ/SystemZISelLowering.cpp @@ -106,6 +106,13 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) : setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand); + setOperationAction(ISD::CTPOP, MVT::i32, Expand); + setOperationAction(ISD::CTPOP, MVT::i64, Expand); + setOperationAction(ISD::CTTZ, MVT::i32, Expand); + setOperationAction(ISD::CTTZ, MVT::i64, Expand); + setOperationAction(ISD::CTLZ, MVT::i32, Promote); + setOperationAction(ISD::CTLZ, MVT::i64, Legal); + // FIXME: Can we lower these 2 efficiently? setOperationAction(ISD::SETCC, MVT::i32, Expand); setOperationAction(ISD::SETCC, MVT::i64, Expand); |