aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMITSUNARI Shigeo <[email protected]>2013-04-17 06:18:17 +0900
committerMITSUNARI Shigeo <[email protected]>2013-04-17 06:18:17 +0900
commit4f544f03f36c91b63ddaff70c0b2a310fb380e4e (patch)
tree0b419b697b399b25931bff646ef03075bde91d22
parent7083ac7030b99c78b5d86fa03a2861186ff321cc (diff)
downloadxbyak-4f544f03f36c91b63ddaff70c0b2a310fb380e4e.tar.gz
xbyak-4f544f03f36c91b63ddaff70c0b2a310fb380e4e.zip
use lea
-rw-r--r--test/sf_test.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/sf_test.cpp b/test/sf_test.cpp
index 237bc2b..b1732e0 100644
--- a/test/sf_test.cpp
+++ b/test/sf_test.cpp
@@ -16,8 +16,7 @@ struct Code : public Xbyak::CodeGenerator {
void gen2()
{
StackFrame sf(this, 2);
- mov(rax, sf.p(0));
- add(rax, sf.p(1));
+ lea(rax, ptr [sf.p(0) + sf.p(1)]);
}
void gen3()
{