forked from OSchip/llvm-project
131 lines
8.2 KiB
LLVM
131 lines
8.2 KiB
LLVM
; Test pass name: ppc-ctr-loops.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-ctr-loops -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-CTR-LOOPS
|
|
; STOP-BEFORE-CTR-LOOPS-NOT: -ppc-ctr-loops
|
|
; STOP-BEFORE-CTR-LOOPS-NOT: "ppc-ctr-loops" pass is not registered.
|
|
; STOP-BEFORE-CTR-LOOPS-NOT: PowerPC CTR Loops
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-ctr-loops -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-CTR-LOOPS
|
|
; STOP-AFTER-CTR-LOOPS: -ppc-ctr-loops
|
|
; STOP-AFTER-CTR-LOOPS-NOT: "ppc-ctr-loops" pass is not registered.
|
|
; STOP-AFTER-CTR-LOOPS: PowerPC CTR Loops
|
|
|
|
|
|
; Test pass name: ppc-loop-preinc-prep.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-loop-preinc-prep -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-LOOP-PREINC-PREP
|
|
; STOP-BEFORE-LOOP-PREINC-PREP-NOT: -ppc-loop-preinc-prep
|
|
; STOP-BEFORE-LOOP-PREINC-PREP-NOT: "ppc-loop-preinc-prep" pass is not registered.
|
|
; STOP-BEFORE-LOOP-PREINC-PREP-NOT: Prepare loop for pre-inc. addressing modes
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-loop-preinc-prep -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-LOOP-PREINC-PREP
|
|
; STOP-AFTER-LOOP-PREINC-PREP: -ppc-loop-preinc-prep
|
|
; STOP-AFTER-LOOP-PREINC-PREP-NOT: "ppc-loop-preinc-prep" pass is not registered.
|
|
; STOP-AFTER-LOOP-PREINC-PREP: Prepare loop for pre-inc. addressing modes
|
|
|
|
|
|
; Test pass name: ppc-toc-reg-deps.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-toc-reg-deps -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-TOC-REG-DEPS
|
|
; STOP-BEFORE-TOC-REG-DEPS-NOT: -ppc-toc-reg-deps
|
|
; STOP-BEFORE-TOC-REG-DEPS-NOT: "ppc-toc-reg-deps" pass is not registered.
|
|
; STOP-BEFORE-TOC-REG-DEPS-NOT: PowerPC TOC Register Dependencies
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-toc-reg-deps -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-TOC-REG-DEPS
|
|
; STOP-AFTER-TOC-REG-DEPS: -ppc-toc-reg-deps
|
|
; STOP-AFTER-TOC-REG-DEPS-NOT: "ppc-toc-reg-deps" pass is not registered.
|
|
; STOP-AFTER-TOC-REG-DEPS: PowerPC TOC Register Dependencies
|
|
|
|
|
|
; Test pass name: ppc-vsx-copy.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-vsx-copy -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-VSX-COPY
|
|
; STOP-BEFORE-VSX-COPY-NOT: -ppc-vsx-copy
|
|
; STOP-BEFORE-VSX-COPY-NOT: "ppc-vsx-copy" pass is not registered.
|
|
; STOP-BEFORE-VSX-COPY-NOT: PowerPC VSX Copy Legalization
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-vsx-copy -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-VSX-COPY
|
|
; STOP-AFTER-VSX-COPY: -ppc-vsx-copy
|
|
; STOP-AFTER-VSX-COPY-NOT: "ppc-vsx-copy" pass is not registered.
|
|
; STOP-AFTER-VSX-COPY: PowerPC VSX Copy Legalization
|
|
|
|
|
|
; Test pass name: ppc-early-ret.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-early-ret -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-EARLY-RET
|
|
; STOP-BEFORE-EARLY-RET-NOT: -ppc-early-ret
|
|
; STOP-BEFORE-EARLY-RET-NOT: "ppc-early-ret" pass is not registered.
|
|
; STOP-BEFORE-EARLY-RET-NOT: PowerPC Early-Return Creation
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-early-ret -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-EARLY-RET
|
|
; STOP-AFTER-EARLY-RET: -ppc-early-ret
|
|
; STOP-AFTER-ERALY-RET-NOT: "ppc-early-ret" pass is not registered.
|
|
; STOP-AFTER-EARLY-RET: PowerPC Early-Return Creation
|
|
|
|
|
|
; Test pass name: ppc-vsx-fma-mutate.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-vsx-fma-mutate -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-VSX-FMA-MUTATE
|
|
; STOP-BEFORE-VSX-FMA-MUTATE-NOT: -ppc-vsx-fma-mutate
|
|
; STOP-BEFORE-VSX-FMA-MUTATE-NOT: "ppc-vsx-fma-mutate" pass is not registered.
|
|
; STOP-BEFORE-VSX-FMA-MUTATE-NOT: PowerPC VSX FMA Mutation
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-vsx-fma-mutate -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-VSX-FMA-MUTATE
|
|
; STOP-AFTER-VSX-FMA-MUTATE: -ppc-vsx-fma-mutate
|
|
; STOP-AFTER-VSX-FMA-MUTATE-NOT: "ppc-vsx-fma-mutate" pass is not registered.
|
|
; STOP-AFTER-VSX-FMA-MUTATE: PowerPC VSX FMA Mutation
|
|
|
|
|
|
; Test pass name: ppc-vsx-swaps.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-vsx-swaps -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-VSX-SWAPS
|
|
; STOP-BEFORE-VSX-SWAPS-NOT: -ppc-vsx-swaps
|
|
; STOP-BEFORE-VSX-SWAPS-NOT: "ppc-vsx-swaps" pass is not registered.
|
|
; STOP-BEFORE-VSX-SWAPS-NOT: PowerPC VSX Swap Removal
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-vsx-swaps -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-VSX-SWAPS
|
|
; STOP-AFTER-VSX-SWAPS: -ppc-vsx-swaps
|
|
; STOP-AFTER-VSX-SWAPS-NOT: "ppc-vsx-swaps" pass is not registered.
|
|
; STOP-AFTER-VSX-SWAPS: PowerPC VSX Swap Removal
|
|
|
|
|
|
; Test pass name: ppc-reduce-cr-ops.
|
|
; RUN: llc -ppc-reduce-cr-logicals -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-reduce-cr-ops -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-REDUCE-CR-OPS
|
|
; STOP-BEFORE-REDUCE-CR-OPS-NOT: -ppc-reduce-cr-ops
|
|
; STOP-BEFORE-REDUCE-CR-OPS-NOT: "ppc-reduce-cr-ops" pass is not registered.
|
|
; STOP-BEFORE-REDUCE-CR-OPS-NOT: PowerPC Reduce CR logical Operation
|
|
|
|
; RUN: llc -ppc-reduce-cr-logicals -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-reduce-cr-ops -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-REDUCE-CR-OPS
|
|
; STOP-AFTER-REDUCE-CR-OPS: -ppc-reduce-cr-ops
|
|
; STOP-AFTER-REDUCE-CR-OPS-NOT: "ppc-reduce-cr-ops" pass is not registered.
|
|
; STOP-AFTER-REDUCE-CR-OPS: PowerPC Reduce CR logical Operation
|
|
|
|
|
|
; Test pass name: ppc-branch-select.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-branch-select -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-BRANCH-SELECT
|
|
; STOP-BEFORE-BRANCH-SELECT-NOT: -ppc-branch-select
|
|
; STOP-BEFORE-BRANCH-SELECT-NOT: "ppc-branch-select" pass is not registered.
|
|
; STOP-BEFORE-BRANCH-SELECT-NOT: PowerPC Branch Selector
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-branch-select -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-BRANCH-SELECT
|
|
; STOP-AFTER-BRANCH-SELECT: -ppc-branch-select
|
|
; STOP-AFTER-BRANCH-SELECT-NOT: "ppc-branch-select" pass is not registered.
|
|
; STOP-AFTER-BRANCH-SELECT: PowerPC Branch Selector
|
|
|
|
|
|
; Test pass name: ppc-branch-coalescing.
|
|
; RUN: llc -enable-ppc-branch-coalesce -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-branch-coalescing -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-BRANCH-COALESCING
|
|
; STOP-BEFORE-BRANCH-COALESCING-NOT: -ppc-branch-coalescing
|
|
; STOP-BEFORE-BRANCH-COALESCING-NOT: "ppc-branch-coalescing" pass is not registered.
|
|
; STOP-BEFORE-BRANCH-COALESCING-NOT: Branch Coalescing
|
|
|
|
; RUN: llc -enable-ppc-branch-coalesce -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-branch-coalescing -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-BRANCH-COALESCING
|
|
; STOP-AFTER-BRANCH-COALESCING: -ppc-branch-coalescing
|
|
; STOP-AFTER-BRANCH-COALESCING-NOT: "ppc-branch-coalescing" pass is not registered.
|
|
; STOP-AFTER-BRANCH-COALESCING: Branch Coalescing
|
|
|
|
|
|
; Test pass name: ppc-qpx-load-splat.
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-before=ppc-qpx-load-splat -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-BEFORE-QPX-LOAD-SPLAT
|
|
; STOP-BEFORE-QPX-LOAD-SPLAT-NOT: -ppc-qpx-load-splat
|
|
; STOP-BEFORE-QPX-LOAD-SPLAT-NOT: "ppc-qpx-load-splat" pass is not registered.
|
|
; STOP-BEFORE-QPX-LOAD-SPLAT-NOT: PowerPC QPX Load Splat Simplification
|
|
|
|
; RUN: llc -mtriple=powerpc64le-unknown-unknown < %s -debug-pass=Structure -stop-after=ppc-qpx-load-splat -o /dev/null 2>&1 | FileCheck %s -check-prefix=STOP-AFTER-QPX-LOAD-SPLAT
|
|
; STOP-AFTER-QPX-LOAD-SPLAT: -ppc-qpx-load-splat
|
|
; STOP-AFTER-QPX-LOAD-SPLAT-NOT: "ppc-qpx-load-splat" pass is not registered.
|
|
; STOP-AFTER-QPX-LOAD-SPLAT: PowerPC QPX Load Splat Simplification
|