[PATCH] [x32] Add __int128 support

Pavel Chupin pavel.v.chupin at gmail.com
Mon Aug 4 05:48:47 PDT 2014


Closed by commit rL214710 (authored by pvchupin).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4755

Files:
  cfe/trunk/lib/Basic/Targets.cpp
  cfe/trunk/test/Sema/types.c

Index: cfe/trunk/test/Sema/types.c
===================================================================
--- cfe/trunk/test/Sema/types.c
+++ cfe/trunk/test/Sema/types.c
@@ -1,5 +1,7 @@
 // RUN: %clang_cc1 %s -pedantic -verify -triple=x86_64-apple-darwin9
 // RUN: %clang_cc1 %s -pedantic -verify -triple=mips64-linux-gnu
+// RUN: %clang_cc1 %s -pedantic -verify -triple=x86_64-unknown-linux
+// RUN: %clang_cc1 %s -pedantic -verify -triple=x86_64-unknown-linux-gnux32
 
 // rdar://6097662
 typedef int (*T)[2];
Index: cfe/trunk/lib/Basic/Targets.cpp
===================================================================
--- cfe/trunk/lib/Basic/Targets.cpp
+++ cfe/trunk/lib/Basic/Targets.cpp
@@ -3401,6 +3401,8 @@
     return CC_C;
   }
 
+  // for x32 we need it here explicitly
+  bool hasInt128Type() const override { return true; }
 };
 } // end anonymous namespace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4755.12154.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140804/b6f34531/attachment.bin>


More information about the cfe-commits mailing list