]> granicus.if.org Git - clang/commitdiff
Add floating point details to PIC16 Target.
authorSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 2 Jun 2009 04:43:46 +0000 (04:43 +0000)
committerSanjiv Gupta <sanjiv.gupta@microchip.com>
Tue, 2 Jun 2009 04:43:46 +0000 (04:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72713 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Basic/Targets.cpp

index c0a7052e356f720078e0ba025d201d355f3c84a1..4b94bcfc432c67845f467d2e2570c6be84cbb0d2 100644 (file)
@@ -1307,7 +1307,17 @@ namespace {
       UIntMaxType = UnsignedLong;
       IntPtrType = SignedShort;
       PtrDiffType = SignedInt;
-      DescriptionString = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8";
+      FloatWidth = 32;
+      FloatAlign = 32;
+      DoubleWidth = 32;
+      DoubleAlign = 32;
+      LongDoubleWidth = 32;
+      LongDoubleAlign = 32;
+      FloatFormat = &llvm::APFloat::IEEEsingle;
+      DoubleFormat = &llvm::APFloat::IEEEsingle;
+      LongDoubleFormat = &llvm::APFloat::IEEEsingle;
+      DescriptionString = "e-p:16:8:8-i8:8:8-i16:8:8-i32:8:8-f32:32:32";
+
     }
     virtual uint64_t getPointerWidthV(unsigned AddrSpace) const { return 16; }
     virtual uint64_t getPointerAlignV(unsigned AddrSpace) const { return 8; }