ruby-changes:73264
From: Noah <ko1@a...>
Date: Tue, 30 Aug 2022 01:05:15 +0900 (JST)
Subject: [ruby-changes:73264] 0a680912e9 (master): x86 TEST should do a load for mem opnds first (https://github.com/Shopify/ruby/pull/368)
https://git.ruby-lang.org/ruby.git/commit/?id=0a680912e9 From 0a680912e960c66b9894cd8b04ecdc819a531727 Mon Sep 17 00:00:00 2001 From: Noah Gibbs <the.codefolio.guy@g...> Date: Fri, 5 Aug 2022 17:03:06 +0100 Subject: x86 TEST should do a load for mem opnds first (https://github.com/Shopify/ruby/pull/368) --- yjit/src/backend/x86_64/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yjit/src/backend/x86_64/mod.rs b/yjit/src/backend/x86_64/mod.rs index 696846d2a8..8d45230e91 100644 --- a/yjit/src/backend/x86_64/mod.rs +++ b/yjit/src/backend/x86_64/mod.rs @@ -117,7 +117,7 @@ impl Assembler https://github.com/ruby/ruby/blob/trunk/yjit/src/backend/x86_64/mod.rs#L117 }; match op { - Op::Add | Op::Sub | Op::And | Op::Cmp | Op::Or => { + Op::Add | Op::Sub | Op::And | Op::Cmp | Op::Or | Op::Test => { let (opnd0, opnd1) = match (opnds[0], opnds[1]) { (Opnd::Mem(_), Opnd::Mem(_)) => { (asm.load(opnds[0]), asm.load(opnds[1])) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/