From f4e920720da0b93d4149576b94aa193c97b79633 Mon Sep 17 00:00:00 2001 From: Kang Zhang Date: Mon, 17 Feb 2020 08:34:56 +0000 Subject: [PATCH] [NFC][PowerPC] Update the test case scalar-equal.ll Modify the command option to add --enable-no-nans-fp-math --- llvm/test/CodeGen/PowerPC/scalar-equal.ll | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/llvm/test/CodeGen/PowerPC/scalar-equal.ll b/llvm/test/CodeGen/PowerPC/scalar-equal.ll index f1337c614b38..5b58d7f3d6e1 100644 --- a/llvm/test/CodeGen/PowerPC/scalar-equal.ll +++ b/llvm/test/CodeGen/PowerPC/scalar-equal.ll @@ -1,12 +1,12 @@ ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py ; RUN: llc -mcpu=pwr8 -ppc-asm-full-reg-names --enable-unsafe-fp-math \ ; RUN: -verify-machineinstrs --enable-no-signed-zeros-fp-math \ -; RUN: --enable-no-nans-fp-math \ +; RUN: --enable-no-nans-fp-math --enable-no-infs-fp-math \ ; RUN: -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s \ ; RUN: --check-prefix=FAST-P8 ; RUN: llc -mcpu=pwr9 -ppc-asm-full-reg-names --enable-unsafe-fp-math \ ; RUN: -verify-machineinstrs --enable-no-signed-zeros-fp-math \ -; RUN: --enable-no-nans-fp-math \ +; RUN: --enable-no-nans-fp-math --enable-no-infs-fp-math \ ; RUN: -mtriple=powerpc64le-unknown-unknown < %s | FileCheck %s \ ; RUN: --check-prefix=FAST-P9 ; RUN: llc -mcpu=pwr9 -ppc-asm-full-reg-names -verify-machineinstrs \ @@ -19,11 +19,10 @@ define double @testoeq(double %a, double %b, double %c, double %d) { ; FAST-P8-LABEL: testoeq: ; FAST-P8: # %bb.0: # %entry -; FAST-P8-NEXT: xscmpudp cr0, f1, f2 -; FAST-P8-NEXT: fmr f1, f3 -; FAST-P8-NEXT: beqlr cr0 -; FAST-P8-NEXT: # %bb.1: # %entry -; FAST-P8-NEXT: fmr f1, f4 +; FAST-P8-NEXT: xssubdp f0, f1, f2 +; FAST-P8-NEXT: xsnegdp f1, f0 +; FAST-P8-NEXT: fsel f0, f0, f3, f4 +; FAST-P8-NEXT: fsel f1, f1, f0, f4 ; FAST-P8-NEXT: blr ; ; FAST-P9-LABEL: testoeq: