Skip to content

Commit a7c712f

Browse files
committed
more intrinsics
1 parent 012c2f1 commit a7c712f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/terminator/intrinsic.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
6666
}
6767

6868
"atomic_store" |
69+
"atomic_store_relaxed" |
70+
"atomic_store_rel" |
6971
"volatile_store" => {
7072
let ty = substs.type_at(0);
7173
let dest = arg_vals[0].read_ptr(&self.memory)?;
@@ -90,6 +92,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
9092
self.write_primval(Lvalue::from_ptr(ptr), change, ty)?;
9193
}
9294

95+
"atomic_cxchg_relaxed" |
9396
"atomic_cxchg" => {
9497
let ty = substs.type_at(0);
9598
let ptr = arg_vals[0].read_ptr(&self.memory)?;
@@ -108,6 +111,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
108111
self.write_primval(Lvalue::from_ptr(ptr), change, ty)?;
109112
}
110113

114+
"atomic_xadd" |
111115
"atomic_xadd_relaxed" => {
112116
let ty = substs.type_at(0);
113117
let ptr = arg_vals[0].read_ptr(&self.memory)?;

0 commit comments

Comments
 (0)