Skip to content

Commit

Permalink
Add a testcase for #9623
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132991 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nadavrot committed Jun 14, 2011
1 parent 7a07083 commit ebf69c3
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/CodeGen/X86/4char-promote.ll
Original file line number Diff line number Diff line change
@@ -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
}


0 comments on commit ebf69c3

Please sign in to comment.