Hard
Message-passing litmus test on ARMv8 with a DMB between the stores
data and flag start at 0 and live in different cache lines. On an ARMv8 multicore, Thread 0 stores data, executes DMB ISH, then stores flag. Thread 1 loads flag and then loads data, using two plain LDR instructions with no barrier and no dependency between them. Can Thread 1 end with r1 == 1 && r2 == 0, having seen the flag but stale data?
// Thread 0 // Thread 1
MOV w0, #42 LDR w1, [flag] // r1
STR w0, [data] LDR w2, [data] // r2
DMB ISH
MOV w0, #1
STR w0, [flag]37 of 47 in Computer Architecture