mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
30264d4391
As part of the unification of the debug format and the MIR format, print MBB references as '%bb.5'. The MIR printer prints the IR name of a MBB only for block definitions. * find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)->getNumber\(\)/" << printMBBReference(*\1)/g' * find . \( -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#" << ([a-zA-Z0-9_]+)\.getNumber\(\)/" << printMBBReference(\1)/g' * find . \( -name "*.txt" -o -name "*.s" -o -name "*.mir" -o -name "*.cpp" -o -name "*.h" -o -name "*.ll" \) -type f -print0 | xargs -0 sed -i '' -E 's/BB#([0-9]+)/%bb.\1/g' * grep -nr 'BB#' and fix Differential Revision: https://reviews.llvm.org/D40422 llvm-svn: 319665
24 lines
881 B
LLVM
24 lines
881 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=sse4.1 | 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) {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: pslld $31, %xmm0
|
|
; CHECK-NEXT: psrad $31, %xmm0
|
|
; CHECK-NEXT: blendvps %xmm0, %xmm1, %xmm2
|
|
; CHECK-NEXT: paddd %xmm0, %xmm1
|
|
; CHECK-NEXT: movaps %xmm2, (%rdi)
|
|
; CHECK-NEXT: movdqa %xmm1, %xmm0
|
|
; CHECK-NEXT: retq
|
|
%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
|
|
}
|
|
|