Question about UNSPEC rtx and a new instruction

2009-01-06 Thread JCX
Hello, I am working on a gcc porting for a new instruction. This instruction needs to move data from memory to two registers. So I use the SET rtx, and the dest of SET is an UNSPEC rtx with two registers. By using such a rtl pattern, gcc performs very differently. It makes mistakes for register rep

Question about type conversion when GCC compile the file?

2009-02-18 Thread JCX
Hello, After I compile the following file for testing, I check the dump file called "129t.final_cleanup". I doubt about why the type "short int" changes into "short unsigned int" during the array operations, and at last changes back to "short int" when it stores the result into memory. T

Question about RTL expander?

2009-02-19 Thread JCX
Hello, After I vectorize the following file by GCC for testing, it gets the right "129t.final_cleanup" file. However, it expands to the wrong vector type when stores the "short int" into memory. I have checked many times, but I still don't know why. Can anyone help me? The source file is: short i