[llvm] f4e9207 - [NFC][PowerPC] Update the test case scalar-equal.ll

Kang Zhang via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 00:35:17 PST 2020


Author: Kang Zhang
Date: 2020-02-17T08:34:56Z
New Revision: f4e920720da0b93d4149576b94aa193c97b79633

URL: https://github.com/llvm/llvm-project/commit/f4e920720da0b93d4149576b94aa193c97b79633
DIFF: https://github.com/llvm/llvm-project/commit/f4e920720da0b93d4149576b94aa193c97b79633.diff

LOG: [NFC][PowerPC] Update the test case scalar-equal.ll

    Modify the command option to add --enable-no-nans-fp-math

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/scalar-equal.ll

Removed: 
    


################################################################################
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:


        


More information about the llvm-commits mailing list