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]

[PATCH, i386]: Fix PR target/43766, x86 prefetch doesn't use complex memory addressing


Hello!

As described in the PR, we fail to parse addresses in the form of:

(prefetch (plus:DI (ashift:DI (reg:DI 60 [ i ])
            (const_int 2 [0x2]))
        (reg/v/f:DI 58 [ a ]))
    (const_int 0 [0x0])
    (const_int 3 [0x3]))

Attached patch introduces handling of ASHIFT addends into x86_decompose_address.

2010-04-19  Uros Bizjak  <ubizjak@gmail.com>

	PR target/43766
	* config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.

testsuite/ChangeLog:

2010-04-19  Uros Bizjak  <ubizjak@gmail.com>

	PR target/43766
	* gcc.target/i386/pr43766.c: New test.

Patch was tested on x86_64-pc-linux-gnu {,-m32}. Patch was committed
to mainline.

Uros.

Attachment: p.diff.txt
Description: Text document


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