This is the mail archive of the gcc-patches@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]

Re: [testcase, arm] Adjust the negative offset of fp memory access in vfp-1.c


Ping

On Wed, Jul 20, 2011 at 4:33 PM, Carrot Wei <carrot@google.com> wrote:
> Oops, the ChangeLog should be
>
> 2011-07-20 ?Wei Guozhi ?<carrot@google.com>
>
> ? ? ? ?* gcc.target/arm/vfp-1.c (test_ldst): Adjust negative offset.
>
>
> thanks
> Carrot
>
> On Wed, Jul 20, 2011 at 4:30 PM, Carrot Wei <carrot@google.com> wrote:
>> Hi
>>
>> The patch r169271 conservatively limits the offset of fp memory access to
>> (-256..1024), but didn't adjust the related test case, so vfp-1.c fails in
>> thumb2 mode after the patch. This patch modifies test case vfp-1.c accordingly.
>>
>> Tested with
>> make check-gcc RUNTESTFLAGS="--target_board=arm-sim/thumb/arch=armv7-a
>> arm.exp=vfp-1.c"
>>
>> OK for trunk and 4.6 branch?
>>
>> thanks
>> Carrot
>>
>>
>> 2011-07-20 ?Wei Guozhi ?<cltang@codesourcery.com>
>>
>> ? ? ? ?* gcc.target/arm/vfp-1.c (test_ldst): Adjust negative offset.
>>
>>
>> Index: gcc.target/arm/vfp-1.c
>> ===================================================================
>> --- gcc.target/arm/vfp-1.c ? ? ?(revision 176495)
>> +++ gcc.target/arm/vfp-1.c ? ? ?(working copy)
>> @@ -127,13 +127,13 @@ void test_convert () {
>>
>> ?void test_ldst (float f[], double d[]) {
>> ? /* { dg-final { scan-assembler "flds.+ \\\[r0, #1020\\\]" } } */
>> - ?/* { dg-final { scan-assembler "flds.+ \\\[r0, #-1020\\\]" } } */
>> + ?/* { dg-final { scan-assembler "flds.+ \\\[r0, #-252\\\]" } } */
>> ? /* { dg-final { scan-assembler "add.+ r0, #1024" } } */
>> ? /* { dg-final { scan-assembler "fsts.+ \\\[r0, #0\\\]\n" } } */
>> - ?f[256] = f[255] + f[-255];
>> + ?f[256] = f[255] + f[-63];
>>
>> ? /* { dg-final { scan-assembler "fldd.+ \\\[r1, #1016\\\]" } } */
>> - ?/* { dg-final { scan-assembler "fldd.+ \\\[r1, #-1016\\\]" } } */
>> + ?/* { dg-final { scan-assembler "fldd.+ \\\[r1, #-248\\\]" } } */
>> ? /* { dg-final { scan-assembler "fstd.+ \\\[r1, #256\\\]" } } */
>> - ?d[32] = d[127] + d[-127];
>> + ?d[32] = d[127] + d[-31];
>> ?}
>>
>


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