From: Justin Seyster Date: Wed, 27 Oct 2010 00:19:17 +0000 (-0400) Subject: Modified floating point test case to deal with 12-bit (long double). X-Git-Tag: release-v1.0~15 X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=78543a1ad078a50c1fbab9209f0c202954194890;p=interaspect.git Modified floating point test case to deal with 12-bit (long double). --- diff --git a/test/plugin-float-types.c b/test/plugin-float-types.c index 643e27b..e8e82b8 100644 --- a/test/plugin-float-types.c +++ b/test/plugin-float-types.c @@ -31,8 +31,13 @@ static unsigned int plugin_float() aop_filter_call_pc_by_param(pc, 0, aop_t_float64()); aop_join_on(pc, plugin_join_on_call, "_advice_64"); + /* (long double) is 96 bits on 32-bit machines but 128 bits on + 64-bit machines. */ pc = aop_match_function_call(); - aop_filter_call_pc_by_param(pc, 0, aop_t_float128()); + if (sizeof(long double) == 12) + aop_filter_call_pc_by_param(pc, 0, aop_t_float96()); + else + aop_filter_call_pc_by_param(pc, 0, aop_t_float128()); aop_join_on(pc, plugin_join_on_call, "_advice_128"); return 0;