From bb2accba9bf1ec2bf32e7d461785b3084524dbf1 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Mon, 26 Jul 2021 12:26:11 -0700 Subject: [PATCH] stage1: add c_longdouble mapping for s390x --- src/stage1/codegen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/stage1/codegen.cpp b/src/stage1/codegen.cpp index d1bea6990a..083d15068a 100644 --- a/src/stage1/codegen.cpp +++ b/src/stage1/codegen.cpp @@ -8794,6 +8794,9 @@ static void define_builtin_types(CodeGen *g) { case ZigLLVM_sparcv9: add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble); break; + case ZigLLVM_systemz: + add_fp_entry(g, "c_longdouble", 128, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble); + break; case ZigLLVM_avr: // It's either a float or a double, depending on a toolchain switch add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);