[LLVMdev] how to define extending vector load patterns?

Tim Northover t.p.northover at gmail.com
Tue Oct 30 07:52:57 PDT 2012

Hi Heikki,

> just using [(set V2I32Regs:$result, (sextloadv2i8 ADDRrr:$address))]
> gives me error that extloav2i8 is not defined.

I don't have a target to test this on, but looking at
include/llvm/Target/TargetSelectionDAG.td, there is an "sextloadvi8"
PatFrag, at least. I'd suggest a pattern along the lines of:

(set V2I32Regs:$result, (v2i32 (sextloadvi8 ADDRrr:$address)))


More information about the llvm-dev mailing list