mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00: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
40 lines
1.5 KiB
LLVM
40 lines
1.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -O2 -mtriple=x86_64-linux-android -mattr=+mmx \
|
|
; RUN: -enable-legalize-types-checking | FileCheck %s --check-prefix=MMX
|
|
; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu -mattr=+mmx \
|
|
; RUN: -enable-legalize-types-checking | FileCheck %s --check-prefix=MMX
|
|
; RUN: llc < %s -O2 -mtriple=x86_64-linux-android \
|
|
; RUN: -enable-legalize-types-checking | FileCheck %s
|
|
; RUN: llc < %s -O2 -mtriple=x86_64-linux-gnu \
|
|
; RUN: -enable-legalize-types-checking | FileCheck %s
|
|
|
|
define void @test_select(fp128* %p, fp128* %q, i1 zeroext %c) {
|
|
; MMX-LABEL: test_select:
|
|
; MMX: # %bb.0:
|
|
; MMX-NEXT: testl %edx, %edx
|
|
; MMX-NEXT: jne .LBB0_1
|
|
; MMX-NEXT: # %bb.2:
|
|
; MMX-NEXT: movaps {{.*}}(%rip), %xmm0
|
|
; MMX-NEXT: movaps %xmm0, (%rsi)
|
|
; MMX-NEXT: retq
|
|
; MMX-NEXT: .LBB0_1:
|
|
; MMX-NEXT: movaps (%rdi), %xmm0
|
|
; MMX-NEXT: movaps %xmm0, (%rsi)
|
|
; MMX-NEXT: retq
|
|
;
|
|
; CHECK-LABEL: test_select:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: xorl %eax, %eax
|
|
; CHECK-NEXT: testl %edx, %edx
|
|
; CHECK-NEXT: cmovneq (%rdi), %rax
|
|
; CHECK-NEXT: movabsq $9223231299366420480, %rcx # imm = 0x7FFF800000000000
|
|
; CHECK-NEXT: cmovneq 8(%rdi), %rcx
|
|
; CHECK-NEXT: movq %rcx, 8(%rsi)
|
|
; CHECK-NEXT: movq %rax, (%rsi)
|
|
; CHECK-NEXT: retq
|
|
%a = load fp128, fp128* %p, align 2
|
|
%r = select i1 %c, fp128 %a, fp128 0xL00000000000000007FFF800000000000
|
|
store fp128 %r, fp128* %q
|
|
ret void
|
|
}
|