From 78543a1ad078a50c1fbab9209f0c202954194890 Mon Sep 17 00:00:00 2001 From: Justin Seyster Date: Tue, 26 Oct 2010 20:19:17 -0400 Subject: [PATCH] Modified floating point test case to deal with 12-bit (long double). --- test/plugin-float-types.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; -- 2.34.1