summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-05 07:17:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-05 07:17:13 +0000
commita7f77599a49641a8388600e922a7070af3f1623b (patch)
tree0a0857e4a3e2bec18a9895ce296755d4ccfbbec9
parent7e90b115507716add6e52641b063252b32bede13 (diff)
downloadbcm5719-llvm-a7f77599a49641a8388600e922a7070af3f1623b.tar.gz
bcm5719-llvm-a7f77599a49641a8388600e922a7070af3f1623b.zip
Added ARM::CPSR to represent ARM CPSR status register.
llvm-svn: 37897
-rw-r--r--llvm/lib/Target/ARM/ARMRegisterInfo.td6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMRegisterInfo.td b/llvm/lib/Target/ARM/ARMRegisterInfo.td
index 691514cd8ee..3d2646e998f 100644
--- a/llvm/lib/Target/ARM/ARMRegisterInfo.td
+++ b/llvm/lib/Target/ARM/ARMRegisterInfo.td
@@ -78,6 +78,9 @@ def D13 : ARMReg<13, "d13", [S26, S27]>;
def D14 : ARMReg<14, "d14", [S28, S29]>;
def D15 : ARMReg<15, "d15", [S30, S31]>;
+// Current Program Status Register.
+def CPSR : ARMReg<0, "cpsr">;
+
// Register classes.
//
// pc == Program Counter
@@ -188,3 +191,6 @@ def SPR : RegisterClass<"ARM", [f32], 32, [S0, S1, S2, S3, S4, S5, S6, S7, S8,
// is double-word alignment though.
def DPR : RegisterClass<"ARM", [f64], 64, [D0, D1, D2, D3, D4, D5, D6, D7, D8,
D9, D10, D11, D12, D13, D14, D15]>;
+
+// Condition code registers.
+def CCR : RegisterClass<"ARM", [i32], 32, [CPSR]>;
OpenPOWER on IntegriCloud