Open amitschendel opened 2 months ago
This can be explained in IR: for __sync_fetch_and_add(&key, 0), the related IR is %0 = atomicrmw or ptr %key, i32 0 seq_cst, align 4 unfortunately 32bit 'atomicrmw or' is only supported at -mcpu=v3, so you got an error above.
If you have __sync_fetch_and_add(&key, 1), the IR will be %0 = atomicrmw add ptr %key, i32 1 seq_cst, align 4 everything will be okay.
artifacts.zip