Skip to content

Commit 11cd87e

Browse files
committed
Flip matching
1 parent 57c7119 commit 11cd87e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/shims/foreign_items.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,15 +433,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
433433
this.write_scalar(Scalar::from_f64(res), dest)?;
434434
}
435435

436+
"llvm.x86.sse2.pause" if this.tcx.sess.target.target.arch == "x86" || this.tcx.sess.target.target.arch == "x86_64" => {}
437+
436438
// Target-specific shims
437439
_ => {
438-
match this.tcx.sess.target.target.arch.as_str() {
439-
"x86" | "x86_64" => match link_name {
440-
"llvm.x86.sse2.pause" => return Ok(true),
441-
_ => {}
442-
}
443-
_ => {}
444-
}
445440
match this.tcx.sess.target.target.target_os.as_str() {
446441
"linux" | "macos" => return posix::EvalContextExt::emulate_foreign_item_by_name(this, link_name, args, dest, ret),
447442
"windows" => return windows::EvalContextExt::emulate_foreign_item_by_name(this, link_name, args, dest, ret),

0 commit comments

Comments
 (0)