Commit 8f4e6891 authored by qinsoon's avatar qinsoon

treat NotAtomic in load/store the same as Relaxed

parent 9608c574
Pipeline #121 failed with stage
in 16 minutes and 16 seconds
......@@ -740,7 +740,8 @@ impl <'a> InstructionSelection {
MemoryOrder::Relaxed
| MemoryOrder::Consume
| MemoryOrder::Acquire
| MemoryOrder::SeqCst => {},
| MemoryOrder::SeqCst
| MemoryOrder::NotAtomic => {},
_ => panic!("didnt expect order {:?} with store inst", order)
}
......@@ -763,7 +764,9 @@ impl <'a> InstructionSelection {
let generate_plain_mov : bool = {
match order {
MemoryOrder::Relaxed | MemoryOrder::Release => true,
MemoryOrder::Relaxed
| MemoryOrder::Release
| MemoryOrder::NotAtomic => true,
MemoryOrder::SeqCst => false,
_ => panic!("didnt expect order {:?} with store inst", order)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment