0

How if mfence is separated to afence and bfence, afence is for load & store reordering and bfence is for store & load reordering. What will happen?

Charles
  • 53
  • 3

1 Answers1

0

I'm assuming the context is x86. In addition to load-store and store-load reordering, mfence also prevents store-store reordering and load-load reordering. Though normal stores on x86 cannot be reordered, "non-temporal" stores can be reordered.

Jeff Hammond
  • 5,374
  • 3
  • 28
  • 45
Arch D. Robison
  • 3,829
  • 2
  • 16
  • 26