[PATCH] D131601: [EarlyCSE] allow flexibility in atan(-0.0) test

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 12:04:22 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG43dd567443e1: [EarlyCSE] allow flexibility in atan(-0.0) test (authored by spatel).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131601/new/

https://reviews.llvm.org/D131601

Files:
  llvm/test/Transforms/EarlyCSE/atan.ll


Index: llvm/test/Transforms/EarlyCSE/atan.ll
===================================================================
--- llvm/test/Transforms/EarlyCSE/atan.ll
+++ llvm/test/Transforms/EarlyCSE/atan.ll
@@ -1,10 +1,11 @@
-; XFAIL: system-aix
-; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 ; RUN: opt -early-cse -S < %s | FileCheck %s
 
+; We allow either sign to provide flexibility for mathlib
+; implementations. The POSIX standard is not strict here.
+
 define float @callatan0() {
 ; CHECK-LABEL: @callatan0(
-; CHECK-NEXT:    ret float -0.000000e+00
+; CHECK-NEXT:    ret float {{-?}}0.000000e+00
 ;
   %call = call float @atanf(float -0.0)
   ret float %call


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131601.451598.patch
Type: text/x-patch
Size: 688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/aa709e8b/attachment.bin>


More information about the llvm-commits mailing list