aboutsummaryrefslogblamecommitdiff
path: root/test/CodeGen/X86/4char-promote.ll
blob: 27778be3b71b7bef62d8d5825fa988ae90a71cc7 (plain) (tree)
1
2
3
4
5
6
7
                                                                             
                             
                                           


                                     
                                                




                                    






                                  
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; A test for checking PR 9623
; RUN: llc -mcpu=corei7 < %s | FileCheck %s

target triple = "x86_64-apple-darwin"

define <4 x i8> @foo(<4 x i8> %x, <4 x i8> %y) {
; CHECK-LABEL: foo:
; CHECK:       ## %bb.0: ## %entry
; CHECK-NEXT:    pmulld %xmm0, %xmm1
; CHECK-NEXT:    paddd %xmm1, %xmm0
; CHECK-NEXT:    retq
entry:
 %binop = mul <4 x i8> %x, %y
 %binop6 = add <4 x i8> %binop, %x
 ret <4 x i8> %binop6
}