Skip to contentSkip to conversation

dependency violation table problem

Linux-ia64 Jim Wilson 1 participant 1 message Apr 6, 2003

lore
Share & tools
lore

Jim Wilson

author
#0 lore raw

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