authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-07-26 12:26:11-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-07-27 21:08:04-04:00
logbb2accba9bf1ec2bf32e7d461785b3084524dbf1
tree5660e79a813b5d90daa1054e2c3eefd369b1b3cb
parentdc88864c9742029c2980fc16cd2c9e6f04ff3568

stage1: add c_longdouble mapping for s390x


1 files changed, 3 insertions(+), 0 deletions(-)

src/stage1/codegen.cpp+3
......@@ -8794,6 +8794,9 @@ static void define_builtin_types(CodeGen *g) {
87948794 case ZigLLVM_sparcv9:
87958795 add_fp_entry(g, "c_longdouble", 128, LLVMFP128Type(), &g->builtin_types.entry_c_longdouble);
87968796 break;
8797 case ZigLLVM_systemz:
8798 add_fp_entry(g, "c_longdouble", 128, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);
8799 break;
87978800 case ZigLLVM_avr:
87988801 // It's either a float or a double, depending on a toolchain switch
87998802 add_fp_entry(g, "c_longdouble", 64, LLVMDoubleType(), &g->builtin_types.entry_c_longdouble);