forked from OSchip/llvm-project
Define CRT_HAS_128BIT even for PPC32
r201909, which introduced CRT_HAS_128BIT, unintentionally broke self-hosting on PPC32. We used to define CRT_HAS_128BIT only on LP64 systems, but this is not quite right (at least for Clang-compiled code). Even though __int128 is not supported on PPC32, SROA can (and does) still form i128 variables at the IR level, and operations on those variables may turn into the associated runtime calls. As a result, we still need to compile __ashlti3, __ashrti3, __lshrti3, and perhaps others, on PPC32. llvm-svn: 208560
This commit is contained in:
parent
01ee31bbad
commit
10c6c06656
|
@ -56,7 +56,7 @@ typedef union
|
|||
}s;
|
||||
} udwords;
|
||||
|
||||
#if __LP64__
|
||||
#if __LP64__ || defined(__ppc__) || defined(__powerpc__)
|
||||
#define CRT_HAS_128BIT
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue