[llvm-commits] [llvm] r76843 - in /llvm/trunk: lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/vec_insertps-1.ll
Eric Christopher
echristo at apple.com
Wed Jul 22 19:53:14 PDT 2009
On Jul 22, 2009, at 7:32 PM, Eli Friedman wrote:
> On Wed, Jul 22, 2009 at 7:23 PM, Eric
> Christopher<echristo at apple.com> wrote:
>> +let Constraints = "$src1 = $dst" in {
>> + def INSERTPSrr : SS4AIi8<0x21, MRMSrcReg, (outs VR128:$dst),
>> + (ins VR128:$src1, VR128:$src2, i32i8imm:
>> $src3),
>> + "insertps\t{$src3, $src2, $dst|$dst,
>> $src2, $src3}",
>> + [(set VR128:$dst, (int_x86_sse41_insertps
>> VR128:$src1,
>> + VR128:$src2,
>> imm:$src3))]>;
>> +}
>> +
>
> Don't duplicate instructions; you can use patterns to map multiple
> ways of expressing the same construct.
Hmm.. ok. I'll see how to do that then :)
thanks!
-eric
More information about the llvm-commits
mailing list