[PowerPC] add more FMF debug output; NFC
We can't see all of the problems currently unless we look at debug output when the global 'unsafe' is on. It's a mess. This is another attempt to make sure that D45710 is not making changes unintentionally. llvm-svn: 331476
This commit is contained in:
parent
8242ca3312
commit
52151885e4
|
@ -1,8 +1,9 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
||||
; REQUIRES: asserts
|
||||
; RUN: llc < %s -mtriple=powerpc64le -debug-only=isel -o /dev/null 2>&1 | FileCheck %s --check-prefix=FMFDEBUG
|
||||
; RUN: llc < %s -mtriple=powerpc64le | FileCheck %s --check-prefix=FMF
|
||||
; RUN: llc < %s -mtriple=powerpc64le -enable-unsafe-fp-math | FileCheck %s --check-prefix=GLOBAL
|
||||
; RUN: llc < %s -mtriple=powerpc64le -debug-only=isel -o /dev/null 2>&1 | FileCheck %s --check-prefix=FMFDEBUG
|
||||
; RUN: llc < %s -mtriple=powerpc64le | FileCheck %s --check-prefix=FMF
|
||||
; RUN: llc < %s -mtriple=powerpc64le -debug-only=isel -o /dev/null 2>&1 -enable-unsafe-fp-math | FileCheck %s --check-prefix=GLOBALDEBUG
|
||||
; RUN: llc < %s -mtriple=powerpc64le -enable-unsafe-fp-math | FileCheck %s --check-prefix=GLOBAL
|
||||
|
||||
; Test FP transforms using instruction/node-level fast-math-flags.
|
||||
; We're also checking debug output to verify that FMF is propagated to the newly created nodes.
|
||||
|
@ -159,6 +160,10 @@ define float @fmul_fadd_fast2(float %x, float %y, float %z) {
|
|||
; FMFDEBUG: fma {{t[0-9]+}}
|
||||
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc1:'
|
||||
|
||||
; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_reassoc1:'
|
||||
; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
|
||||
; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc1:'
|
||||
|
||||
define float @fmul_fma_reassoc1(float %x) {
|
||||
; FMF-LABEL: fmul_fma_reassoc1:
|
||||
; FMF: # %bb.0:
|
||||
|
@ -191,6 +196,10 @@ define float @fmul_fma_reassoc1(float %x) {
|
|||
; FMFDEBUG: fma {{t[0-9]+}}
|
||||
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc2:'
|
||||
|
||||
; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_reassoc2:'
|
||||
; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
|
||||
; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_reassoc2:'
|
||||
|
||||
define float @fmul_fma_reassoc2(float %x) {
|
||||
; FMF-LABEL: fmul_fma_reassoc2:
|
||||
; FMF: # %bb.0:
|
||||
|
@ -223,6 +232,10 @@ define float @fmul_fma_reassoc2(float %x) {
|
|||
; FMFDEBUG: fma {{t[0-9]+}}
|
||||
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast1:'
|
||||
|
||||
; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_fast1:'
|
||||
; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
|
||||
; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast1:'
|
||||
|
||||
define float @fmul_fma_fast1(float %x) {
|
||||
; FMF-LABEL: fmul_fma_fast1:
|
||||
; FMF: # %bb.0:
|
||||
|
@ -255,6 +268,10 @@ define float @fmul_fma_fast1(float %x) {
|
|||
; FMFDEBUG: fma {{t[0-9]+}}
|
||||
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast2:'
|
||||
|
||||
; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'fmul_fma_fast2:'
|
||||
; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
|
||||
; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'fmul_fma_fast2:'
|
||||
|
||||
define float @fmul_fma_fast2(float %x) {
|
||||
; FMF-LABEL: fmul_fma_fast2:
|
||||
; FMF: # %bb.0:
|
||||
|
@ -287,6 +304,10 @@ define float @fmul_fma_fast2(float %x) {
|
|||
; FMFDEBUG: fsqrt {{t[0-9]+}}
|
||||
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_afn:'
|
||||
|
||||
; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'sqrt_afn:'
|
||||
; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
|
||||
; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_afn:'
|
||||
|
||||
define float @sqrt_afn(float %x) {
|
||||
; FMF-LABEL: sqrt_afn:
|
||||
; FMF: # %bb.0:
|
||||
|
@ -323,6 +344,10 @@ define float @sqrt_afn(float %x) {
|
|||
; FMFDEBUG: fsqrt {{t[0-9]+}}
|
||||
; FMFDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_fast:'
|
||||
|
||||
; GLOBALDEBUG-LABEL: Optimized lowered selection DAG: %bb.0 'sqrt_fast:'
|
||||
; GLOBALDEBUG: fmul unsafe {{t[0-9]+}}
|
||||
; GLOBALDEBUG: Type-legalized selection DAG: %bb.0 'sqrt_fast:'
|
||||
|
||||
define float @sqrt_fast(float %x) {
|
||||
; FMF-LABEL: sqrt_fast:
|
||||
; FMF: # %bb.0:
|
||||
|
|
Loading…
Reference in New Issue