Comments (6)
Thank you for your code. I'll check it.
from xbyak.
Thank you for your excellent code.
I merged and modifed your code a little.
2158b53
You can write as the following code.
Is this your desired specification?
Label label1, label2;
jmp("@f");
L(label1);
db(a0, 4);
db(a1, 4);
L("@@");
mov(eax, ptr [rip + label1]); // a0
add(eax, ptr [rip + label1+4]); // a1
add(eax, ptr [rip + label2-8+2+6]); // b0
add(eax, ptr [rip + 16+label2-12]); // b1
ret();
L(label2);
db(b0, 4);
db(b1, 4);
from xbyak.
Thank you very much for merging and improving my changes, this is indeed the specification I was hoping for.
Testing it on my project, I found a bug with the modified changes, though:
The following code:
pshufb (xmm2, ptr[rip+myLabel]);
Generates the following instruction:
pshufb xmm0,
(The bug is that xmm2 became xmm0)
This happens because the new code always outputs 0x05 for rip-relative addresses with a label, even if updateRegField was called on the address.
from xbyak.
I'm sorry. I fixed it. c81d6d8
Could you try it again?
from xbyak.
Thanks, herumi!
I've tested the updated branch and it works great with my project.
from xbyak.
Thank you for the confirmation.
from xbyak.
Related Issues (20)
- array-bounds error HOT 10
- Broken test suite on x86 (IA-32) HOT 2
- WAITPKG HOT 2
- Build failure with XBYAK_NO_EXCEPTION HOT 2
- Cpu::has() check is inconsistent HOT 3
- The version number went backwards: 6.052 -> 6.06 HOT 10
- Compilation issue with template trick on MSVC HOT 3
- Standalone CPUID flags are coupled with `AVX512F` HOT 1
- movzx eax, ah HOT 3
- "invalid token at start of a preprocessor expression" HOT 5
- Question on error stickyness HOT 3
- Error raised when using vpmovsdb with memory mask HOT 4
- x32 support HOT 11
- Please use ${CXX} instead of hardcoding g++ because in different systems C++ compiler has different executable names HOT 2
- RISC-V ISA support HOT 2
- aligned allocation requests should be rounded up to page size HOT 2
- AMD MONITORX instructions support HOT 2
- Support for Intel APX and AVX10 HOT 4
- Support for xbegin, xend, xabort functions HOT 1
- APX support in progress HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xbyak.