diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-22 04:20:06 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2005-11-22 04:20:06 +0000 |
commit | 50b37845ef3ecc706806ca6da76c68db283f6e1e (patch) | |
tree | d16b68e4728ce560d5c5da7738e1cb80cde6cf9f /lib/Target/Alpha/AlphaISelPattern.cpp | |
parent | 4ef3b817fee7ea5be7219e00ab8e15976bfe279f (diff) |
massive DAGISel patch. lots and lots more stuff compiles now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelPattern.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelPattern.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/Target/Alpha/AlphaISelPattern.cpp b/lib/Target/Alpha/AlphaISelPattern.cpp index 1e6bab6c3a..e9e5237217 100644 --- a/lib/Target/Alpha/AlphaISelPattern.cpp +++ b/lib/Target/Alpha/AlphaISelPattern.cpp @@ -592,7 +592,9 @@ unsigned AlphaISel::SelectExpr(SDOperand N) { return Result; } case ISD::UNDEF: { - BuildMI(BB, Alpha::IDEF, 0, Result); + Opc = isFP ? (DestType == MVT::f32 ? Alpha::IDEF_F32 : Alpha::IDEF_F64) + : Alpha::IDEF_I; + BuildMI(BB, Opc, 0, Result); return Result; } @@ -1610,7 +1612,13 @@ void AlphaISel::Select(SDOperand N) { case ISD::ImplicitDef: ++count_ins; Select(N.getOperand(0)); - BuildMI(BB, Alpha::IDEF, 0, + switch(N.getValueType()) { + case MVT::f32: Opc = Alpha::IDEF_F32; break; + case MVT::f64: Opc = Alpha::IDEF_F64; break; + case MVT::i64: Opc = Alpha::IDEF_I; break; + default: assert(0 && "should have been legalized"); + }; + BuildMI(BB, Opc, 0, cast<RegisterSDNode>(N.getOperand(1))->getReg()); return; |