google / google/gematria

Snippet causing remappings of the same address in the exegesis annotator

Open
#75 1 comment 0 reactions 1 assignee Claimed by @boomanaiden154 View on GitHub
Dominant language
Python
Stars
95
Forks
19
PR merge metrics
No merged PRs in 30d

Description

```
# LLVM-EXEGESIS-DEFREG EFLAGS 12345600
# LLVM-EXEGESIS-DEFREG RCX 12345600
# LLVM-EXEGESIS-DEFREG RDI 12345600
# LLVM-EXEGESIS-DEFREG RIP 12345600
# LLVM-EXEGESIS-DEFREG XMM2 12345600
# LLVM-EXEGESIS-LOOP-REGISTER RDX
movzbl (%rcx), %eax
movd %edi, %xmm0
pshufd $0, %xmm0, %xmm0
movdqa (%rip), %xmm1
pand %xmm0, %xmm1
pand (%rip), %xmm0
pxor %xmm2, %xmm2
movdqa %xmm0, %xmm3
pcmpeqd %xmm2, %xmm3
movdqa %xmm1, %xmm4
pcmpeqd %xmm2, %xmm4
packssdw %xmm3, %xmm4
packsswb %xmm4, %xmm4
movdqa %xmm4, %xmm3
pandn (%rip), %xmm3
movb %al, (%rip)
pand (%rip), %xmm4
por %xmm3, %xmm4
movq %xmm4, (%rip)
testb $1, %dil
movl $45, %eax
movl $120, %ecx
cmovel %eax, %ecx
movb %cl, (%rip)
testl $2048, %edi
```

This snippet ends up making the exegesis annotator map the same address over and over (but eventually, it moves on to another page). Not sure why this behavior is occurring and more investigation is needed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.