Gcc 333 and altivec optimizations
Gcc 333 and altivec optimizations
- Subject: Gcc 333 and altivec optimizations
- From: Marc Van Olmen <email@hidden>
- Date: Wed, 14 Apr 2004 01:39:15 -0400
Hi
I have some altivec code:
t0 = vec_mradds( tr0, r0, c0 );
t1 = vec_mradds( tr0, r1, c0 );
t2 = vec_mradds( tr0, r2, c0 );
It is generating the following assembler code:
0x0000b53c <+0944> addi r2,r30,160
0x0000b540 <+0948> lvx v12,r0,r2
0x0000b544 <+0952> addi r2,r30,304
0x0000b548 <+0956> lvx v9,r0,r2
0x0000b54c <+0960> vmhraddshs v11,v0,v12,v9
0x0000b550 <+0964> addi r2,r30,176
0x0000b554 <+0968> lvx v9,r0,r2
0x0000b558 <+0972> addi r2,r30,304
0x0000b55c <+0976> lvx v6,r0,r2
0x0000b560 <+0980> vmhraddshs v12,v0,v9,v6
0x0000b564 <+0984> addi r2,r30,192
0x0000b568 <+0988> lvx v6,r0,r2
0x0000b56c <+0992> addi r2,r30,304
0x0000b570 <+0996> lvx v5,r0,r2
0x0000b574 <+1000> vmhraddshs v9,v0,v6,v5
To me this looks lousy because there is no need to all of this... Extra
code...
I'm using a debug build so maybe that's at cause but still
So all of this raising me a couple of questions:
1. I'm currently using debugger to see Assembler, is there another way to
view generated assembler code? Because I want to look at the final build's
assembler code.
2. Is there a way to inline assembler with gcc?
3. are there any settings I need to set to my project to make sure I have
best optimization for altivec code?
thx,
mvo
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.