summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZISelLowering.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:19:02 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 14:19:02 +0000
commit2c97ae8826371dc5b4dc119d7576443ebd39b7b2 (patch)
tree48c0014b61118b5b4acba3e0a5ad0c26ed9c991d /lib/Target/SystemZ/SystemZISelLowering.cpp
parentb13057bafaab29d765ade38cddb64b17acaaef31 (diff)
downloadllvm-2c97ae8826371dc5b4dc119d7576443ebd39b7b2.tar.gz
llvm-2c97ae8826371dc5b4dc119d7576443ebd39b7b2.tar.bz2
llvm-2c97ae8826371dc5b4dc119d7576443ebd39b7b2.tar.xz
Register FP regclasses
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76014 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelLowering.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZISelLowering.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZISelLowering.cpp b/lib/Target/SystemZ/SystemZISelLowering.cpp
index ae1c8b72e4..364d688655 100644
--- a/lib/Target/SystemZ/SystemZISelLowering.cpp
+++ b/lib/Target/SystemZ/SystemZISelLowering.cpp
@@ -32,6 +32,7 @@
#include "llvm/CodeGen/SelectionDAGISel.h"
#include "llvm/CodeGen/ValueTypes.h"
#include "llvm/Support/Debug.h"
+#include "llvm/Target/TargetOptions.h"
#include "llvm/ADT/VectorExtras.h"
using namespace llvm;
@@ -47,6 +48,11 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) :
addRegisterClass(MVT::i128, SystemZ::GR128RegisterClass);
addRegisterClass(MVT::v2i64,SystemZ::GR128RegisterClass);
+ if (!UseSoftFloat) {
+ addRegisterClass(MVT::f32, SystemZ::FP32RegisterClass);
+ addRegisterClass(MVT::f64, SystemZ::FP64RegisterClass);
+ }
+
// Compute derived properties from the register classes
computeRegisterProperties();