stage1: Fix ppcle long double size

Resolves #13110
This commit is contained in:
Cody Tapscott 2022-10-14 12:58:37 -07:00
parent 34863224c3
commit a168893e00
2 changed files with 4 additions and 3 deletions

View File

@ -9936,6 +9936,7 @@ static void define_builtin_types(CodeGen *g) {
add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);
break;
case ZigLLVM_ppc:
case ZigLLVM_ppcle:
case ZigLLVM_ppc64:
case ZigLLVM_ppc64le:
add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);

View File

@ -950,7 +950,6 @@ bool target_is_arm(const ZigTarget *target) {
case ZigLLVM_msp430:
case ZigLLVM_nvptx:
case ZigLLVM_nvptx64:
case ZigLLVM_ppc64le:
case ZigLLVM_r600:
case ZigLLVM_renderscript32:
case ZigLLVM_renderscript64:
@ -971,6 +970,7 @@ bool target_is_arm(const ZigTarget *target) {
case ZigLLVM_ppc:
case ZigLLVM_ppcle:
case ZigLLVM_ppc64:
case ZigLLVM_ppc64le:
case ZigLLVM_ve:
case ZigLLVM_spirv32:
case ZigLLVM_spirv64:
@ -1125,8 +1125,8 @@ bool target_is_mips(const ZigTarget *target) {
}
bool target_is_ppc(const ZigTarget *target) {
return target->arch == ZigLLVM_ppc || target->arch == ZigLLVM_ppc64 ||
target->arch == ZigLLVM_ppc64le;
return target->arch == ZigLLVM_ppc || target->arch == ZigLLVM_ppcle ||
target->arch == ZigLLVM_ppc64 || target->arch == ZigLLVM_ppc64le;
}
// Returns the minimum alignment for every function pointer on the given