File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -194,16 +194,21 @@ void ansi_c_internal_additions(std::string &code)
194
194
195
195
if (
196
196
config.ansi_c .arch == " i386" || config.ansi_c .arch == " x86_64" ||
197
- config.ansi_c .arch == " x32" || config.ansi_c .arch == " powerpc" ||
198
- config.ansi_c .arch == " ppc64" || config.ansi_c .arch == " ppc64le" ||
199
- config.ansi_c .arch == " ia64" )
197
+ config.ansi_c .arch == " x32" || config.ansi_c .arch == " ia64" ||
198
+ config.ansi_c .arch == " powerpc" || config.ansi_c .arch == " ppc64" )
200
199
{
201
200
// https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
202
201
// For clang, __float128 is a keyword.
203
202
// For gcc, this is a typedef and not a keyword.
204
203
if (config.ansi_c .mode != configt::ansi_ct::flavourt::CLANG)
205
204
code += " typedef __CPROVER_Float128 __float128;\n " ;
206
205
}
206
+ else if (config.ansi_c .arch == " ppc64le" )
207
+ {
208
+ // https://patchwork.ozlabs.org/patch/792295/
209
+ if (config.ansi_c .mode != configt::ansi_ct::flavourt::CLANG)
210
+ code += " typedef __CPROVER_Float128 __ieee128;\n " ;
211
+ }
207
212
else if (config.ansi_c .arch == " hppa" )
208
213
{
209
214
// https://gcc.gnu.org/onlinedocs/gcc/Floating-Types.html
You can’t perform that action at this time.
0 commit comments