[llvm-commits] [PATCH] PowerPC: Expand load extend vector operations

Adhemerval Zanella azanella at linux.vnet.ibm.com
Mon Nov 5 05:22:25 PST 2012


This patch expands the SEXTLOAD, ZEXTLOAD, and EXTLOAD operations for
vector types when Altivec is enabled. This patch avoid llvm on PPC with
altivec enbled to fail with expand code like:

define <8 x i16> @v8si16_sext_in_reg(<8 x i16> %a) {
  %b = trunc <8 x i16> %a to <8 x i8>
  %c = sext <8 x i8> %b to <8 x i16>
  ret <8 x i16> %c
}

Testcase included and tested on X86_64 and PPC64. Any comments, tips,
advices?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-PowerPC-Expand-load-extend-vector-operations.patch
Type: text/x-patch
Size: 8439 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121105/58a24dfd/attachment.bin>


More information about the llvm-commits mailing list