Re: Conversion between different types on IA-64

From: Martin Pool <>
Date: 2003-07-30 13:55:43
On 30 Jul 2003, CH Gowri Kumar <> wrote:
> Hi all,
> Can anyone point me to a source of how to convert from a 
> wider size to narrow size (long to int, int to char etc.) on IA-64?
> For the other way round(narrow to wider), I could find SXT(sign extend) 
> and ZXT(zero extend) instructions.
> gcc seems(but not sure) to be storing the original value and loading it 
> using the appropriate LD* instruction.

In C just a cast ought to do it.

In asm it seems like you can either ST and then LD4/LD2/LD1, or use

Sorry if I'm misunderstanding your question.

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Tue Jul 29 23:57:59 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:16 EST