Skip to contentSkip to conversation

dependency violation table problem

Linux-ia64 Leung, Felix 1 participant 1 message Apr 7, 2003

lore
Share & tools
lore
#0 lore raw

Hi Jim,

Yes what you mentioned is correct. "mem-writers-fp" is missed on fr-readers line.
The fix will be like what you said by adding IC:mem-writers to the RAW DV tables.

Both you mentioned will be fixed in the next revision of SDM.

Let me know if you find any other doc errors.

Thanks.

- Felix

-----Original Message-----
From: Jim Wilson <[email protected]>
To: [email protected]
Date: 06 Apr 2003 11:49:09 -0400
Subject: [Linux-ia64] dependency violation table problem

Gas fails for this simple testcase.

        .auto
        ldfs f8 = [r32]
        stfd [r33] = f8

It should insert a stop bit between the load and store, but does not.

This appears to be a bug in the Intel dependency violation (DV) tables.

In the Intel Itanium Architecture Software Developer's Manual (IIASDM), vol 3, revision 2.1, page 342, table 5-2, says that there is a RAW DV for a FR% register if fr-writers is followed by fr-readers.

fr-readers is defined on page 352, table 5-5. It includes arith operations (e.g. add), non-arith operations (e.g. and), and a few other things, but it does not include stf. This looks like a bug in the Intel documentation.

I believe this should be fixed by adding IC:mem-writers-fp to fr-readers. This makes gas work as expected.

As long as I'm reporting documentation problems, there is another less important one I've noticed. In the X unit instruction encodings, IIASDM vol 3 rev 2.1 page 332 table 4-73, it mentions nop.m and hint.m. These should be nop.x and hint.x.

I'm off on a 4000 km international move, so I will be offline for a week or two.

Jim