From 8419b6757b44f0bb3d8bd20e50197576fbdcb927 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 17 Jun 2003 13:40:37 +0000 Subject: [PATCH] ia64.c (ia64_expand_builtin, [...]): Handle POINTERS_EXTEND_UNSIGNED. * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP): Handle POINTERS_EXTEND_UNSIGNED. From-SVN: r68083 --- gcc/ChangeLog | 5 +++++ gcc/config/ia64/ia64.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 114ffd81e48..1dfed6281e9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-17 Richard Kenner + + * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP): + Handle POINTERS_EXTEND_UNSIGNED. + 2003-06-17 Rainer Orth * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 && diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index b7f9b289caa..dd9426870fb 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -8253,6 +8253,9 @@ ia64_expand_builtin (exp, target, subtarget, mode, ignore) if (! target || ! register_operand (target, DImode)) target = gen_reg_rtx (DImode); emit_insn (gen_bsp_value (target)); +#ifdef POINTERS_EXTEND_UNSIGNED + target = convert_memory_address (ptr_mode, target); +#endif return target; case IA64_BUILTIN_FLUSHRS: