Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Uros Bizjak via Gcc-patches
On Wed, Oct 14, 2020 at 5:06 PM Hongyu Wang wrote: > > Hi Uros, > > Sorry for my misunderstanding. The test is for the correctness check > of intrinsic header. > I have add -muintr to x86gprintrin-{1,2,3,4,5}.c. > > UINTR is 64bit only, so I add them with dg-additional-option. > > Updated patch. I

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Hongyu Wang via Gcc-patches
Hi Uros, Sorry for my misunderstanding. The test is for the correctness check of intrinsic header. I have add -muintr to x86gprintrin-{1,2,3,4,5}.c. UINTR is 64bit only, so I add them with dg-additional-option. Updated patch. If you agree, we will check-in the attached patch. Thanks for your he

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread H.J. Lu via Gcc-patches
On Wed, Oct 14, 2020 at 6:31 AM Hongyu Wang via Gcc-patches wrote: > > Uros Bizjak 于2020年10月14日周三 下午7:19写道: > > > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > > > >> > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new > intrinsics > > > > >> > > header. > > > > >>

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Hongyu Wang via Gcc-patches
Uros Bizjak 于2020年10月14日周三 下午7:19写道: > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > > >> > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new intrinsics > > > >> > > header. > > > >> > > > > > >> > > > > >> > Thanks for your review. We found that without adding -mui

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Uros Bizjak via Gcc-patches
> > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > >> > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new intrinsics > > >> > > header. > > >> > > > > >> > > > >> > Thanks for your review. We found that without adding -muintr, the > > >> > intrinsics header could also be t

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Hongtao Liu via Gcc-patches
On Wed, Oct 14, 2020 at 5:21 PM Uros Bizjak wrote: > > On Wed, Oct 14, 2020 at 11:04 AM Hongyu Wang wrote: > > > > > > > > Uros Bizjak 于2020年10月14日周三 下午4:42写道: > >> > >> On Wed, Oct 14, 2020 at 10:34 AM Hongyu Wang > >> wrote: > >> > > >> > > > >> > > Please also add -muintr to g++.dg/other/i3

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Uros Bizjak via Gcc-patches
On Wed, Oct 14, 2020 at 11:04 AM Hongyu Wang wrote: > > > > Uros Bizjak 于2020年10月14日周三 下午4:42写道: >> >> On Wed, Oct 14, 2020 at 10:34 AM Hongyu Wang wrote: >> > >> > > >> > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and >> > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Hongyu Wang via Gcc-patches
Uros Bizjak 于2020年10月14日周三 下午4:53写道: > > On Wed, Oct 14, 2020 at 10:42 AM Uros Bizjak wrote: > > > > On Wed, Oct 14, 2020 at 10:34 AM Hongyu Wang wrote: > > > > > > > > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test n

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Hongyu Wang via Gcc-patches
Uros Bizjak 于2020年10月14日周三 下午4:42写道: > On Wed, Oct 14, 2020 at 10:34 AM Hongyu Wang > wrote: > > > > > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new intrinsics > > > header. > > > > > > > Thanks for your review. We

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Uros Bizjak via Gcc-patches
On Wed, Oct 14, 2020 at 10:42 AM Uros Bizjak wrote: > > On Wed, Oct 14, 2020 at 10:34 AM Hongyu Wang wrote: > > > > > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new intrinsics > > > header. > > > > > > > Thanks for y

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Uros Bizjak via Gcc-patches
On Wed, Oct 14, 2020 at 10:34 AM Hongyu Wang wrote: > > > > > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new intrinsics > > header. > > > > Thanks for your review. We found that without adding -muintr, the intrinsics > heade

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-14 Thread Hongyu Wang via Gcc-patches
> > Please also add -muintr to g++.dg/other/i386-{2,3}.C and > gcc.target/i386-sse-{12,13,14,22,23}.c. This will test new intrinsics > header. > Thanks for your review. We found that without adding -muintr, the intrinsics header could also be tested. Make-check for these file all get passed. And

Re: [Patch] x86: Enable support for Intel UINTR extension

2020-10-13 Thread Uros Bizjak via Gcc-patches
On Tue, Oct 13, 2020 at 10:30 AM Hongyu Wang wrote: > > Hi: > > This patch is about to support User Interrupt (UINTR) instructions. > > This feature defines user interrupts as new events in the architecture. They > are delivered to software operating in 64-bit mode with CPL = 3 without any > ch

[Patch] x86: Enable support for Intel UINTR extension

2020-10-13 Thread Hongyu Wang via Gcc-patches
Hi: This patch is about to support User Interrupt (UINTR) instructions. This feature defines user interrupts as new events in the architecture. They are delivered to software operating in 64-bit mode with CPL = 3 without any change to segmentation state. For more details, please refer to https:/