paulfloyd / freebsdarm64_valgrind

[UNMAINTAINED] Repo used during the development of Valgrind for FreeBSD arm64. The code has been merged upstream so I won't be maintaining this repo.
GNU General Public License v2.0
1 stars 0 forks source link

ARM64 asm failures #5

Closed paulfloyd closed 7 months ago

paulfloyd commented 7 months ago

In the VG code debug traces

Problems in ./none/tests/arm64/

paulfloyd commented 7 months ago

Tons of warnings in integer.c about sizes of operands plus

integer.c:9357:1: error: expected 'sxtx' 'uxtx' or 'lsl' with optional integer in range [0, 4]
TESTINST3("add x21,x22,x23,uxtb #0", NN0, NN1, x21,x22,x23,0);
^
integer.c:97:7: note: expanded from macro 'TESTINST3'
      "msr nzcv,%4;" \
      ^
<inline asm>:1:52: note: instantiated into assembly here
        msr nzcv,x6;mov x22,x1;mov x23,x2;add x21,x22,x23,uxtb #0;mov x18,x21;mrs x17,nzcv;
                                                          ^

objdump dissassembles without the explicit offset

50cd8: 8b3702d5 add x21, x22, w23, uxtb

paulfloyd commented 7 months ago

Now all compile.