https://bugs.kde.org/show_bug.cgi?id=498494
Bug ID: 498494 Summary: illegal instructions with none/tests/amd64/rdseed and rdrand on FreeBSD compiled with clang Classification: Developer tools Product: valgrind Version: unspecified Platform: FreeBSD Ports OS: FreeBSD Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: pjfl...@wanadoo.fr Target Milestone: --- Both run OK outside of Valgrind. rdseed gives me paulf@freebsd:~/valgrind $ ./vg-in-place ./none/tests/amd64/rdseed ==78559== Memcheck, a memory error detector ==78559== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==78559== Using Valgrind-3.25.0.GIT and LibVEX; rerun with -h for copyright info ==78559== Command: ./none/tests/amd64/rdseed ==78559== vex amd64->IR: unhandled instruction bytes: 0x49 0xF 0xC7 0xFB 0x41 0xF 0x92 0xC4 0x4C 0x89 vex amd64->IR: REX=1 REX.W=1 REX.R=0 REX.X=0 REX.B=1 vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=0F vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 That's this 2017c7: 49 0f c7 fb rdseedq %r11 and rdrand paulf@freebsd:~/valgrind $ ./vg-in-place ./none/tests/amd64/rdrand ==78572== Memcheck, a memory error detector ==78572== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al. ==78572== Using Valgrind-3.25.0.GIT and LibVEX; rerun with -h for copyright info ==78572== Command: ./none/tests/amd64/rdrand ==78572== vex amd64->IR: unhandled instruction bytes: 0x49 0xF 0xC7 0xF3 0x41 0xF 0x92 0xC4 0x4C 0x89 vex amd64->IR: REX=1 REX.W=1 REX.R=0 REX.X=0 REX.B=1 vex amd64->IR: VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=0F vex amd64->IR: PFX.66=0 PFX.F2=0 PFX.F3=0 That's 2017c7: 49 0f c7 f3 rdrandq %r11 My guess is that clang is emitting a slight variation of the opcode which VEX doesn't decode. -- You are receiving this mail because: You are watching all bug changes.