Re: [PATCH] Fix __builtin_ia32_rdpmc (PR target/87550)

2018-10-10 Thread Uros Bizjak
On Wed, Oct 10, 2018 at 11:09 AM Jakub Jelinek wrote: > > Hi! > > The following testcase shows that we incorrectly handle __builtin_ia32_rdpmc > as a const function, so we e.g. CSE it. The problem is that all bdesc_args > functions are registered using def_builtin_const. The patch fixes this by

[PATCH] Fix __builtin_ia32_rdpmc (PR target/87550)

2018-10-10 Thread Jakub Jelinek
Hi! The following testcase shows that we incorrectly handle __builtin_ia32_rdpmc as a const function, so we e.g. CSE it. The problem is that all bdesc_args functions are registered using def_builtin_const. The patch fixes this by moving it to the bdesc_special_args category, which is registered