summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcISelLowering.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-03 04:41:44 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-04-03 04:41:44 +0000
commit8534e9998c53efae49e4555ba394f39808fb83e0 (patch)
tree1bd8ac4c1e69663722c552a7692b4640924c3377 /lib/Target/Sparc/SparcISelLowering.h
parent2d8f62017d6223444564f79fc8044cc35d9d5678 (diff)
downloadllvm-8534e9998c53efae49e4555ba394f39808fb83e0.tar.gz
llvm-8534e9998c53efae49e4555ba394f39808fb83e0.tar.bz2
llvm-8534e9998c53efae49e4555ba394f39808fb83e0.tar.xz
Add 64-bit compare + branch for SPARC v9.
The same compare instruction is used for 32-bit and 64-bit compares. It sets two different sets of flags: icc and xcc. This patch adds a conditional branch instruction using the xcc flags for 64-bit compares. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcISelLowering.h')
-rw-r--r--lib/Target/Sparc/SparcISelLowering.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcISelLowering.h b/lib/Target/Sparc/SparcISelLowering.h
index 08e6f211bf..274673cd4d 100644
--- a/lib/Target/Sparc/SparcISelLowering.h
+++ b/lib/Target/Sparc/SparcISelLowering.h
@@ -24,9 +24,10 @@ namespace llvm {
namespace SPISD {
enum {
FIRST_NUMBER = ISD::BUILTIN_OP_END,
- CMPICC, // Compare two GPR operands, set icc.
+ CMPICC, // Compare two GPR operands, set icc+xcc.
CMPFCC, // Compare two FP operands, set fcc.
BRICC, // Branch to dest on icc condition
+ BRXCC, // Branch to dest on xcc condition (64-bit only).
BRFCC, // Branch to dest on fcc condition
SELECT_ICC, // Select between two values using the current ICC flags.
SELECT_FCC, // Select between two values using the current FCC flags.