authorgravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-14 12:58:37-07:00
committergravatar for topolarity@tapscott.meCody Tapscott <topolarity@tapscott.me> 2022-10-14 13:35:10-07:00
loga168893e0097093665154c7897b7f909cec855a1
treed34139b2244026b8226589fc58bd1a9da578a73b
parent34863224c388570892d3a0f110138de56a74d04c

stage1: Fix ppcle `long double` size

Resolves #13110

2 files changed, 4 insertions(+), 3 deletions(-)

src/stage1/codegen.cpp+1
...@@ -9936,6 +9936,7 @@ static void define_builtin_types(CodeGen *g) {...@@ -9936,6 +9936,7 @@ static void define_builtin_types(CodeGen *g) {
9936 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);9936 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);
9937 break;9937 break;
9938 case ZigLLVM_ppc:9938 case ZigLLVM_ppc:
9939 case ZigLLVM_ppcle:
9939 case ZigLLVM_ppc64:9940 case ZigLLVM_ppc64:
9940 case ZigLLVM_ppc64le:9941 case ZigLLVM_ppc64le:
9941 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);9942 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);
src/stage1/target.cpp+3-3
...@@ -950,7 +950,6 @@ bool target_is_arm(const ZigTarget *target) {...@@ -950,7 +950,6 @@ bool target_is_arm(const ZigTarget *target) {
950 case ZigLLVM_msp430:950 case ZigLLVM_msp430:
951 case ZigLLVM_nvptx:951 case ZigLLVM_nvptx:
952 case ZigLLVM_nvptx64:952 case ZigLLVM_nvptx64:
953 case ZigLLVM_ppc64le:
954 case ZigLLVM_r600:953 case ZigLLVM_r600:
955 case ZigLLVM_renderscript32:954 case ZigLLVM_renderscript32:
956 case ZigLLVM_renderscript64:955 case ZigLLVM_renderscript64:
...@@ -971,6 +970,7 @@ bool target_is_arm(const ZigTarget *target) {...@@ -971,6 +970,7 @@ bool target_is_arm(const ZigTarget *target) {
971 case ZigLLVM_ppc:970 case ZigLLVM_ppc:
972 case ZigLLVM_ppcle:971 case ZigLLVM_ppcle:
973 case ZigLLVM_ppc64:972 case ZigLLVM_ppc64:
973 case ZigLLVM_ppc64le:
974 case ZigLLVM_ve:974 case ZigLLVM_ve:
975 case ZigLLVM_spirv32:975 case ZigLLVM_spirv32:
976 case ZigLLVM_spirv64:976 case ZigLLVM_spirv64:
...@@ -1125,8 +1125,8 @@ bool target_is_mips(const ZigTarget *target) {...@@ -1125,8 +1125,8 @@ bool target_is_mips(const ZigTarget *target) {
1125}1125}
11261126
1127bool target_is_ppc(const ZigTarget *target) {1127bool target_is_ppc(const ZigTarget *target) {
1128 return target->arch == ZigLLVM_ppc || target->arch == ZigLLVM_ppc64 ||1128 return target->arch == ZigLLVM_ppc || target->arch == ZigLLVM_ppcle ||
1129 target->arch == ZigLLVM_ppc64le;1129 target->arch == ZigLLVM_ppc64 || target->arch == ZigLLVM_ppc64le;
1130}1130}
11311131
1132// Returns the minimum alignment for every function pointer on the given1132// Returns the minimum alignment for every function pointer on the given