Commit 8f4e6891 authored by qinsoon's avatar qinsoon

treat NotAtomic in load/store the same as Relaxed

parent 9608c574
...@@ -740,7 +740,8 @@ impl <'a> InstructionSelection { ...@@ -740,7 +740,8 @@ impl <'a> InstructionSelection {
MemoryOrder::Relaxed MemoryOrder::Relaxed
| MemoryOrder::Consume | MemoryOrder::Consume
| MemoryOrder::Acquire | MemoryOrder::Acquire
| MemoryOrder::SeqCst => {}, | MemoryOrder::SeqCst
| MemoryOrder::NotAtomic => {},
_ => panic!("didnt expect order {:?} with store inst", order) _ => panic!("didnt expect order {:?} with store inst", order)
} }
...@@ -763,7 +764,9 @@ impl <'a> InstructionSelection { ...@@ -763,7 +764,9 @@ impl <'a> InstructionSelection {
let generate_plain_mov : bool = { let generate_plain_mov : bool = {
match order { match order {
MemoryOrder::Relaxed | MemoryOrder::Release => true, MemoryOrder::Relaxed
| MemoryOrder::Release
| MemoryOrder::NotAtomic => true,
MemoryOrder::SeqCst => false, MemoryOrder::SeqCst => false,
_ => panic!("didnt expect order {:?} with store inst", order) _ => 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