[Bug c/92346] gcc mis-compute the side effect of inline assembly and produce code with unexpected output

2019-11-04 Thread 141242068 at smail dot nju.edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92346 --- Comment #4 from wierton <141242068 at smail dot nju.edu.cn> --- (In reply to Andrew Pinski from comment #3) > (In reply to wierton from comment #2) > > This code can reproduce the phenomenon and there are no output constraints. > > I do

[Bug c/92346] gcc mis-compute the side effect of inline assembly and produce code with unexpected output

2019-11-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92346 --- Comment #3 from Andrew Pinski --- (In reply to wierton from comment #2) > This code can reproduce the phenomenon and there are no output constraints. > I do understand that the declaration %eax in eax is conflict with the inline > assembly

[Bug c/92346] gcc mis-compute the side effect of inline assembly and produce code with unexpected output

2019-11-04 Thread 141242068 at smail dot nju.edu.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92346 --- Comment #2 from wierton <141242068 at smail dot nju.edu.cn> --- (In reply to Andrew Pinski from comment #1) > This code is clearly undefined. > > First you say eax is in eax and then then you say the register gets > clobbered by the

[Bug c/92346] gcc mis-compute the side effect of inline assembly and produce code with unexpected output

2019-11-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92346 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---