libera/#sbcl - IRC Chatlog
Search
6:36:58
hayley
(Asked heisig for u32.8-string-ref and movemask, but forgot about 8-bit strings, oops)
10:04:42
hayley
He used to be active on IRC, but I think he's now busy with PhD work. But if I get the time (I'm also busy with university) I can see about adding in a u8.32-string-ref, though that of course would only be usable from the SBCL release after I do that.
10:09:07
hayley
I have https://github.com/telekons/one-more-re-nightmare/blob/master/Code/SIMD/new-sbcl-x86-64.lisp#L236-L250 (see lines 70-80 for DEFINE-BORING-VOP) which you could use.
12:19:23
kami_
But I seem to miss something. When trying to create a vop for vptest, I get an error 'invalid number of arguments: 4'
12:25:06
hayley
My understanding is VPTEST sets flags and not a register; DEFINE-BORING-VOP won't work there. I can't remember how to specify which flag the VOP "returns", but you'd need to specify the Carry flag.
12:30:39
hayley
The DEFINE-VOP form should have (:conditional :c) I think, and similarly the DEFKNOWN should return a BOOLEAN. A guess though, I don't have any conditional VOPs I wrote on me.