On 11/18/19 1:25 PM, Christophe Lyon wrote: > Hi Richard > > On Thu, 14 Nov 2019 at 11:08, Richard Henderson > <richard.hender...@linaro.org> wrote: >> >> Inspired by the tests in gcc.target/i386. Testing code generation, >> diagnostics, and execution. >> >> * gcc.target/arm/asm-flag-1.c: New test. >> * gcc.target/arm/asm-flag-3.c: New test. >> * gcc.target/arm/asm-flag-5.c: New test. >> * gcc.target/arm/asm-flag-6.c: New test. > > I've noticed ICEs when using -march=armv5t, but I believe these are > fixed by your follow-up patch for thumb1. > > However, I've also noticed that asm-flag-6 fails at execution time > when generating code for cortex-m (I have m3, m4, and m33 in my list) > QEMU complains with: > qemu: fatal: v7m_msr 2048 > > Indeed, it crashes on > 0x000081c4: f383 8800 msr apsr, r3 > > Which looks like a qemu bug, probably similar to the vmsr one I fixed > recently. While reading the ARM ARM, I also noticed that "apsr" is > deprecated and should be "APSR_nzcvq" (as emitted by GCC), so it seems > qemu's disassembler needs an update too. Do you want me to have a look > at the qemu problems, or will you handle them?
I can handle them. Thanks for the report. r~