mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
cad75e30da
llvm-svn: 346188
20 lines
489 B
LLVM
20 lines
489 B
LLVM
; 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
|
|
}
|
|
|
|
|