[llvm-commits] [llvm] r132991 - /llvm/trunk/test/CodeGen/X86/4char-promote.ll

Nadav Rotem nadav.rotem at intel.com
Tue Jun 14 06:23:10 PDT 2011


Author: nadav
Date: Tue Jun 14 08:23:10 2011
New Revision: 132991

URL: http://llvm.org/viewvc/llvm-project?rev=132991&view=rev
Log:
Add a testcase for #9623


Added:
    llvm/trunk/test/CodeGen/X86/4char-promote.ll

Added: llvm/trunk/test/CodeGen/X86/4char-promote.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/4char-promote.ll?rev=132991&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/4char-promote.ll (added)
+++ llvm/trunk/test/CodeGen/X86/4char-promote.ll Tue Jun 14 08:23:10 2011
@@ -0,0 +1,16 @@
+; A test for checking PR 9623
+;RUN: llc -march=x86-64 -promote-elements < %s | FileCheck %s
+
+
+; CHECK:  pmulld 
+; CHECK:  paddd  
+; CHECK:  movdqa 
+
+define <4 x i8> @foo(<4 x i8> %x, <4 x i8> %y) {
+entry:
+ %binop = mul <4 x i8> %x, %y
+ %binop6 = add <4 x i8> %binop, %x
+ ret <4 x i8> %binop6
+}
+
+





More information about the llvm-commits mailing list