[llvm] [ConstantFolding] Fix nvvm_round folding on PPC (PR #149837)
Lewis Crawford via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 21 08:31:23 PDT 2025
LewisCrawford wrote:
This should fix the test failure here: https://lab.llvm.org/buildbot/#/builders/64/builds/4929
> + /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/build/bin/FileCheck /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/Transforms/InstSimplify/const-fold-nvvm-unary-arithmetic.ll
> /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/Transforms/InstSimplify/const-fold-nvvm-unary-arithmetic.ll:421:15: error: CHECK-NEXT: expected string not found in input
> ; CHECK-NEXT: ret double -0.000000e+00
> ^
> <stdin>:196:44: note: scanning from here
> define double @test_round_d_neg_subnorm() {
> ^
> <stdin>:197:2: note: possible intended match here
> ret double 0.000000e+00
> ^
> /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/Transforms/InstSimplify/const-fold-nvvm-unary-arithmetic.ll:429:15: error: CHECK-NEXT: expected string not found in input
> ; CHECK-NEXT: ret float -0.000000e+00
> ^
> <stdin>:200:43: note: scanning from here
> define float @test_round_f_neg_subnorm() {
> ^
> <stdin>:201:2: note: possible intended match here
> ret float 0.000000e+00
> ^
> Input file: <stdin>
> Check file: /home/llvm/llvm-external-buildbots/workers/aix-ppc64/clang-ppc64-aix/llvm-project/llvm/test/Transforms/InstSimplify/const-fold-nvvm-unary-arithmetic.ll
> -dump-input=help explains the following input dump.
> Input was:
> <<<<<<
> .
> .
> .
> 191:
> 192: define float @test_round_ftz_f_neg_1_5() {
> 193: ret float -2.000000e+00
> 194: }
> 195:
> 196: define double @test_round_d_neg_subnorm() {
> next:421'0 X error: no match found
> 197: ret double 0.000000e+00
> next:421'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
> next:421'1 ? possible intended match
> 198: }
> next:421'0 ~~
> 199:
> next:421'0 ~
> 200: define float @test_round_f_neg_subnorm() {
> next:421'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> next:429'0 X error: no match found
> 201: ret float 0.000000e+00
> next:429'0 ~~~~~~~~~~~~~~~~~~~~~~~~
> next:429'1 ? possible intended match
> 202: }
> next:429'0 ~~
> 203:
> next:429'0 ~
> 204: define float @test_round_ftz_f_neg_subnorm() {
> next:429'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 205: ret float -0.000000e+00
> 206: }
> .
> .
> .
> >>>>>>
https://github.com/llvm/llvm-project/pull/149837
More information about the llvm-commits
mailing list