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

Nadav Rotem nadav.rotem at intel.com
Wed Jun 15 05:26:53 PDT 2011


Author: nadav
Date: Wed Jun 15 07:26:53 2011
New Revision: 133053

URL: http://llvm.org/viewvc/llvm-project?rev=133053&view=rev
Log:
This test was failing on X86 machines which do not have SSE4. Fixed the test by
specifying that the target CPU is corei7.


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=133053&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/X86/4char-promote.ll (added)
+++ llvm/trunk/test/CodeGen/X86/4char-promote.ll Wed Jun 15 07:26:53 2011
@@ -0,0 +1,17 @@
+; A test for checking PR 9623
+;RUN: llc -march=x86-64 -mcpu=corei7 -promote-elements < %s | FileCheck %s
+
+target triple = "x86_64-apple-darwin"
+
+; 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