mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 21:05:51 +00:00
0894438912
- When simplifying the mask generation for BLEND, check whether that mask is also consumed by other non-BLEND insns. If true, skip that simplification. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195476 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
559 B
LLVM
17 lines
559 B
LLVM
; RUN: llc < %s -mtriple=x86_64-linux-pc -mcpu=penryn | FileCheck %s
|
|
|
|
; Ensure PSRAD is generated as the condition is consumed by both PADD and
|
|
; BLENDVPS. PAND requires all bits setting properly.
|
|
|
|
define <4 x i32> @foo(<4 x i32>* %p, <4 x i1> %cond, <4 x i32> %v1, <4 x i32> %v2, <4 x i32> %v3) {
|
|
%sext_cond = sext <4 x i1> %cond to <4 x i32>
|
|
%t1 = add <4 x i32> %v1, %sext_cond
|
|
%t2 = select <4 x i1> %cond, <4 x i32> %v1, <4 x i32> %v2
|
|
store <4 x i32> %t2, <4 x i32>* %p
|
|
ret <4 x i32> %t1
|
|
; CHECK: foo
|
|
; CHECK: pslld
|
|
; CHECK: psrad
|
|
; CHECK: ret
|
|
}
|