aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-08-04 19:16:55 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-08-04 19:16:55 +0000
commit71d342e8546e8bb7b57bd161651d08912a32465f (patch)
treec21bc8c0f1e66138bca6a9a78e2674a8d7cf84c1
parent3425df44b511de2e45524a885b370fd8f5d139d3 (diff)
Most flags are reserved registers on Blackfin.
The only exception is CC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78089 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Blackfin/BlackfinRegisterInfo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/Blackfin/BlackfinRegisterInfo.cpp b/lib/Target/Blackfin/BlackfinRegisterInfo.cpp
index f262861133..37fa4c9e3a 100644
--- a/lib/Target/Blackfin/BlackfinRegisterInfo.cpp
+++ b/lib/Target/Blackfin/BlackfinRegisterInfo.cpp
@@ -63,6 +63,17 @@ BitVector
BlackfinRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
using namespace BF;
BitVector Reserved(getNumRegs());
+ Reserved.set(AZ);
+ Reserved.set(AN);
+ Reserved.set(AQ);
+ Reserved.set(AC0);
+ Reserved.set(AC1);
+ Reserved.set(AV0);
+ Reserved.set(AV0S);
+ Reserved.set(AV1);
+ Reserved.set(AV1S);
+ Reserved.set(V);
+ Reserved.set(VS);
Reserved.set(L0);
Reserved.set(L1);
Reserved.set(L2);