This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

alpha nobwx movqi/hi question


Hi
I have a question about the implementation of movqi and movhi in alpha.
In alpha.c the finction alpha_expand_mov_nobwx there is a condition
check whether the memory access is aligned or not. My problem is, I
cantthink of places where the memory address will not be algned. I
thoght since the compiler is generating code, all the memory accesses
would automatically be aligned because compiler will aliign the stack
and data structures that way.

Just in case you are wondering why I am insterestedin this. I am porting
gcc for a new architecture, I have taken powerpc config files as a
template because theres a resemblence, but the architecture has only
4byte memory accesses, so I asked a question on this list in november
and somebody suggested me to take a look at code for alpha without bwx.
So I am trying to understand this code and inject it into the powerpc
files. I also have confusions about the reload part.. but I cant even
phrase my questions on that yet, may be later.
Thanx
Spundun


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]