[llvm-commits] [llvm] r76843 - in /llvm/trunk: lib/Target/X86/X86InstrSSE.td test/CodeGen/X86/vec_insertps-1.ll

Eli Friedman eli.friedman at gmail.com
Wed Jul 22 19:32:05 PDT 2009


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.

-Eli




More information about the llvm-commits mailing list