This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: (R5900) Implementing Vector Support
- From: Woon yung Liu <ysai187 at yahoo dot com>
- To: Richard Henderson <rth at redhat dot com>, Gcc Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 18 May 2016 12:16:32 +0000 (UTC)
- Subject: Re: (R5900) Implementing Vector Support
- Authentication-results: sourceware.org; auth=none
- References: <23a57920-3e9e-05f9-e428-a7e5e89d4de9 at redhat dot com> <133091800 dot 362759 dot 1462978450117 dot JavaMail dot yahoo at mail dot yahoo dot com> <93d40024-8baf-f571-765e-3f3ae59961df at redhat dot com> <687383190 dot 1940916 dot 1463221310394 dot JavaMail dot yahoo at mail dot yahoo dot com> <850bcd56-a219-a153-b467-8414fa19c207 at redhat dot com>
- Reply-to: Woon yung Liu <ysai187 at yahoo dot com>
I didn't know that, thanks.
I've re-done the instructions and expands, mostly based off the stuff that you shared earlier. Unfortunately, the test function wouldn't compile:
testv.c: In function 'testv8mult':
testv.c:87:1: error: unrecognizable insn:
}
^
(insn 7 4 8 2 (parallel [
(set (reg:V8SI 201)
(vec_select:V8SI (mult:V8SI (sign_extend:V8SI (reg/v:V8HI 198 [ v81 ]))
(sign_extend:V8SI (reg/v:V8HI 199 [ v82 ])))
(parallel [
(const_int 0 [0])
(const_int 1 [0x1])
(const_int 4 [0x4])
(const_int 5 [0x5])
(const_int 2 [0x2])
(const_int 3 [0x3])
(const_int 6 [0x6])
(const_int 7 [0x7])
])))
(clobber (scratch:V4SI))
]) testv.c:86 -1
(nil))
On Tuesday, May 17, 2016 5:10 AM, Richard Henderson <rth@redhat.com> wrote:
The x constrant is for the hi/lo pair, whatever size it is. You should be able
to use that just fine with a 256 bit mode.