Skip to content

[InstSimplify] Add basic constant folding for llvm.sincos #114527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 8, 2024

Conversation

MacDue
Copy link
Member

@MacDue MacDue commented Nov 1, 2024

This calls into the existing constant folding for llvm.sin and llvm.cos, which currently does not fold for any non-finite values, so most tests are negative tests at the moment.

Note: The constant folding does not consider the afn fast-math flag and will produce the same result regardless of if the flag is set.

This calls into the existing constant folding for `llvm.sin` and
`llvm.cos`, which currently does not fold for any non-finite values,
so most tests are negative tests.
@llvmbot
Copy link
Member

llvmbot commented Nov 1, 2024

@llvm/pr-subscribers-llvm-analysis

@llvm/pr-subscribers-llvm-transforms

Author: Benjamin Maxwell (MacDue)

Changes

This calls into the existing constant folding for llvm.sin and llvm.cos, which currently does not fold for any non-finite values, so most tests are negative tests at the moment.


Full diff: https://github.com/llvm/llvm-project/pull/114527.diff

2 Files Affected:

  • (modified) llvm/lib/Analysis/ConstantFolding.cpp (+39)
  • (added) llvm/test/Transforms/InstSimplify/sincos.ll (+125)
diff --git a/llvm/lib/Analysis/ConstantFolding.cpp b/llvm/lib/Analysis/ConstantFolding.cpp
index c5a2c2f52f8dc2..ae327340aeec66 100644
--- a/llvm/lib/Analysis/ConstantFolding.cpp
+++ b/llvm/lib/Analysis/ConstantFolding.cpp
@@ -1567,6 +1567,7 @@ bool llvm::canConstantFoldCallTo(const CallBase *Call, const Function *F) {
   case Intrinsic::sqrt:
   case Intrinsic::sin:
   case Intrinsic::cos:
+  case Intrinsic::sincos:
   case Intrinsic::pow:
   case Intrinsic::powi:
   case Intrinsic::ldexp:
@@ -3466,6 +3467,44 @@ ConstantFoldStructCall(StringRef Name, Intrinsic::ID IntrinsicID,
       return nullptr;
     return ConstantStruct::get(StTy, Result0, Result1);
   }
+  case Intrinsic::sincos: {
+    Type *Ty = StTy->getContainedType(0);
+    Type *TyScalar = Ty->getScalarType();
+
+    auto ConstantFoldScalarSincosCall =
+        [&](Constant *Op) -> std::pair<Constant *, Constant *> {
+      Constant *SinResult =
+          ConstantFoldScalarCall(Name, Intrinsic::sin, TyScalar, Op, TLI, Call);
+      if (!SinResult)
+        return {};
+      Constant *CosResult =
+          ConstantFoldScalarCall(Name, Intrinsic::cos, TyScalar, Op, TLI, Call);
+      if (!CosResult)
+        return {};
+      return std::make_pair(SinResult, CosResult);
+    };
+
+    if (auto *FVTy = dyn_cast<FixedVectorType>(Ty)) {
+      SmallVector<Constant *, 4> SinResults(FVTy->getNumElements());
+      SmallVector<Constant *, 4> CosResults(FVTy->getNumElements());
+
+      for (unsigned I = 0, E = FVTy->getNumElements(); I != E; ++I) {
+        Constant *Lane = Operands[0]->getAggregateElement(I);
+        std::tie(SinResults[I], CosResults[I]) =
+            ConstantFoldScalarSincosCall(Lane);
+        if (!SinResults[I])
+          return nullptr;
+      }
+
+      return ConstantStruct::get(StTy, ConstantVector::get(SinResults),
+                                 ConstantVector::get(CosResults));
+    }
+
+    auto [SinResult, CosResult] = ConstantFoldScalarSincosCall(Operands[0]);
+    if (!SinResult)
+      return nullptr;
+    return ConstantStruct::get(StTy, SinResult, CosResult);
+  }
   default:
     // TODO: Constant folding of vector intrinsics that fall through here does
     // not work (e.g. overflow intrinsics)
diff --git a/llvm/test/Transforms/InstSimplify/sincos.ll b/llvm/test/Transforms/InstSimplify/sincos.ll
new file mode 100644
index 00000000000000..c6dc1357b4197a
--- /dev/null
+++ b/llvm/test/Transforms/InstSimplify/sincos.ll
@@ -0,0 +1,125 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
+; RUN: opt -S -passes=instsimplify %s | FileCheck %s
+
+define { float, float } @sincos_zero() {
+; CHECK-LABEL: define { float, float } @sincos_zero() {
+; CHECK-NEXT:    ret { float, float } { float 0.000000e+00, float 1.000000e+00 }
+;
+  %ret = call { float, float } @llvm.sincos.f32(float zeroinitializer)
+  ret { float, float } %ret
+}
+
+define { float, float } @sincos_neg_zero() {
+; CHECK-LABEL: define { float, float } @sincos_neg_zero() {
+; CHECK-NEXT:    ret { float, float } { float -0.000000e+00, float 1.000000e+00 }
+;
+  %ret = call { float, float } @llvm.sincos.f32(float -0.0)
+  ret { float, float } %ret
+}
+
+define { <2 x float>, <2 x float> } @sincos_zero_vector() {
+; CHECK-LABEL: define { <2 x float>, <2 x float> } @sincos_zero_vector() {
+; CHECK-NEXT:    ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
+;
+  %ret = call { <2 x float>, <2 x float> } @llvm.sincos.v2f32(<2 x float> zeroinitializer)
+  ret { <2 x float>, <2 x float> } %ret
+}
+
+define { float, float } @sincos_poison() {
+; CHECK-LABEL: define { float, float } @sincos_poison() {
+; CHECK-NEXT:    [[RET:%.*]] = call { float, float } @llvm.sincos.f32(float poison)
+; CHECK-NEXT:    ret { float, float } [[RET]]
+;
+  %ret = call { float, float } @llvm.sincos.f32(float poison)
+  ret { float, float } %ret
+}
+
+define { <2 x float>, <2 x float> } @sincos_poison_vector() {
+; CHECK-LABEL: define { <2 x float>, <2 x float> } @sincos_poison_vector() {
+; CHECK-NEXT:    [[RET:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincos.v2f32(<2 x float> poison)
+; CHECK-NEXT:    ret { <2 x float>, <2 x float> } [[RET]]
+;
+  %ret = call { <2 x float>, <2 x float> } @llvm.sincos.v2f32(<2 x float> poison)
+  ret { <2 x float>, <2 x float> } %ret
+}
+
+define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_poison_scalable_vector() {
+; CHECK-LABEL: define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_poison_scalable_vector() {
+; CHECK-NEXT:    [[RET:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> poison)
+; CHECK-NEXT:    ret { <vscale x 2 x float>, <vscale x 2 x float> } [[RET]]
+;
+  %ret = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> poison)
+  ret { <vscale x 2 x float>, <vscale x 2 x float> } %ret
+}
+
+define { float, float } @sincos_undef() {
+; CHECK-LABEL: define { float, float } @sincos_undef() {
+; CHECK-NEXT:    [[RET:%.*]] = call { float, float } @llvm.sincos.f32(float undef)
+; CHECK-NEXT:    ret { float, float } [[RET]]
+;
+  %ret = call { float, float } @llvm.sincos.f32(float undef)
+  ret { float, float } %ret
+}
+
+define { <2 x float>, <2 x float> } @sincos_undef_vector() {
+; CHECK-LABEL: define { <2 x float>, <2 x float> } @sincos_undef_vector() {
+; CHECK-NEXT:    [[RET:%.*]] = call { <2 x float>, <2 x float> } @llvm.sincos.v2f32(<2 x float> undef)
+; CHECK-NEXT:    ret { <2 x float>, <2 x float> } [[RET]]
+;
+  %ret = call { <2 x float>, <2 x float> } @llvm.sincos.v2f32(<2 x float> undef)
+  ret { <2 x float>, <2 x float> } %ret
+}
+
+define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_undef_scalable_vector() {
+; CHECK-LABEL: define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_undef_scalable_vector() {
+; CHECK-NEXT:    [[RET:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> undef)
+; CHECK-NEXT:    ret { <vscale x 2 x float>, <vscale x 2 x float> } [[RET]]
+;
+  %ret = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> undef)
+  ret { <vscale x 2 x float>, <vscale x 2 x float> } %ret
+}
+
+define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_zero_scalable_vector() {
+; CHECK-LABEL: define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_zero_scalable_vector() {
+; CHECK-NEXT:    [[RET:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> zeroinitializer)
+; CHECK-NEXT:    ret { <vscale x 2 x float>, <vscale x 2 x float> } [[RET]]
+;
+  %ret = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> zeroinitializer)
+  ret { <vscale x 2 x float>, <vscale x 2 x float> } %ret
+}
+
+define { float, float } @sincos_inf() {
+; CHECK-LABEL: define { float, float } @sincos_inf() {
+; CHECK-NEXT:    [[RET:%.*]] = call { float, float } @llvm.sincos.f32(float 0x7FF0000000000000)
+; CHECK-NEXT:    ret { float, float } [[RET]]
+;
+  %ret = call { float, float } @llvm.sincos.f32(float 0x7FF0000000000000)
+  ret { float, float } %ret
+}
+
+define { float, float } @sincos_neginf() {
+; CHECK-LABEL: define { float, float } @sincos_neginf() {
+; CHECK-NEXT:    [[RET:%.*]] = call { float, float } @llvm.sincos.f32(float 0xFFF0000000000000)
+; CHECK-NEXT:    ret { float, float } [[RET]]
+;
+  %ret = call { float, float } @llvm.sincos.f32(float 0xFFF0000000000000)
+  ret { float, float } %ret
+}
+
+define { float, float } @sincos_qnam() {
+; CHECK-LABEL: define { float, float } @sincos_qnam() {
+; CHECK-NEXT:    [[RET:%.*]] = call { float, float } @llvm.sincos.f32(float 0x7FF8000000000000)
+; CHECK-NEXT:    ret { float, float } [[RET]]
+;
+  %ret = call { float, float } @llvm.sincos.f32(float 0x7FF8000000000000)
+  ret { float, float } %ret
+}
+
+define { float, float } @sincos_snam() {
+; CHECK-LABEL: define { float, float } @sincos_snam() {
+; CHECK-NEXT:    [[RET:%.*]] = call { float, float } @llvm.sincos.f32(float 0x7FF0000020000000)
+; CHECK-NEXT:    ret { float, float } [[RET]]
+;
+  %ret = call { float, float } @llvm.sincos.f32(float bitcast (i32 2139095041 to float))
+  ret { float, float } %ret
+}

@tschuett
Copy link

tschuett commented Nov 1, 2024

Could you add something about afn? IR and/or summery.

@MacDue
Copy link
Member Author

MacDue commented Nov 1, 2024

Could you add something about afn? IR and/or summery.

Sure, I don't believe constant folding requires afn though, right? 🙂

@tschuett
Copy link

tschuett commented Nov 1, 2024

I thought about exploiting the flag.

@MacDue
Copy link
Member Author

MacDue commented Nov 1, 2024

I thought about exploiting the flag.

You mean constant folding differently based on if afn is set or not?

@MacDue MacDue requested a review from tschuett November 1, 2024 11:08
@tschuett
Copy link

tschuett commented Nov 1, 2024

I thought about exploiting the flag.

You mean constant folding differently based on if afn is set or not?

Sure why not. Or alternatively at least stating, we ignore afn because ....

@tschuett tschuett added the floating-point Floating-point math label Nov 1, 2024
%ret = call { float, float } @llvm.sincos.f32(float -0.0)
ret { float, float } %ret
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No tests for normal values?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added some normal value tests using matching the result values (and checking they're used consistently). I avoided this initially as the result for most normal values is displayed in hexadecimal (like 0x3FED18F6E0000000), which didn't seem that helpful.

@MacDue
Copy link
Member Author

MacDue commented Nov 19, 2024

Kind ping 🙂

Comment on lines +105 to +112
define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_zero_scalable_vector() {
; CHECK-LABEL: define { <vscale x 2 x float>, <vscale x 2 x float> } @sincos_zero_scalable_vector() {
; CHECK-NEXT: [[RET:%.*]] = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> zeroinitializer)
; CHECK-NEXT: ret { <vscale x 2 x float>, <vscale x 2 x float> } [[RET]]
;
%ret = call { <vscale x 2 x float>, <vscale x 2 x float> } @llvm.sincos.nxv2f32(<vscale x 2 x float> zeroinitializer)
ret { <vscale x 2 x float>, <vscale x 2 x float> } %ret
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a follow up, should probably make sure the zero, undef, and splat cases work for scalable vectors

@MacDue MacDue merged commit 47df46b into llvm:main Dec 8, 2024
9 checks passed
@MacDue MacDue deleted the sincos_const_fold branch December 8, 2024 21:16
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/9685

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/13426

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -S -passes=instsimplify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -S -passes=instsimplify /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
�[0;1;32m              ^
�[0m�[1m<stdin>:24:60: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mdefine { <2 x float>, <2 x float> } @sincos_zero_vector() {
�[0;1;32m                                                           ^
�[0m�[1m<stdin>:25:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
�[0;1;32m ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
�[1m�[0m�[0;1;30m             1: �[0m�[1m�[0;1;46m; ModuleID = '/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll' �[0m
�[0;1;30m             2: �[0m�[1m�[0;1;46msource_filename = "/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll" �[0m
�[0;1;30m             3: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m             4: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_zero() {�[0;1;46m �[0m
�[0;1;32mlabel:4'0       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:4'1       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             5: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
�[0;1;32mnext:5           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             6: �[0m�[1m�[0;1;46m} �[0m
�[0;1;30m             7: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m             8: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_neg_zero() {�[0;1;46m �[0m
�[0;1;32mlabel:12'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:12'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             9: �[0m�[1m�[0;1;46m �[0mret { float, float } { float -0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
�[0;1;32mnext:13          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m            10: �[0m�[1m�[0;1;46m} �[0m
�[0;1;30m            11: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m            12: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_one() {�[0;1;46m �[0m
�[0;1;32mlabel:20'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:20'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m            13: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0x3FEAED5480000000, float 0x3FE14A2800000000 }�[0;1;46m �[0m
�[0;1;32mnext:21'0        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mnext:21'1                                     ^~~~~~~~~~~~~~~~~~                              captured var "$SIN_ONE"
�[0m�[0;1;32mnext:21'2                                                               ^~~~~~~~~~~~~~~~~~    captured var "$COS_ONE"
�[0m�[0;1;30m            14: �[0m�[1m�[0;1;46m} �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder clang-x86_64-debian-fast running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/13989

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -S -passes=instsimplify /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll | /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/opt -S -passes=instsimplify /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/1/clang-x86_64-debian-fast/llvm.obj/bin/FileCheck /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll
/b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /b/1/clang-x86_64-debian-fast/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-x86_64-debian-dylib running on gribozavr4 while building llvm at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/14660

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/1/llvm-x86_64-debian-dylib/build/bin/opt -S -passes=instsimplify /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt -S -passes=instsimplify /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building llvm at step 8 "Add check check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/12596

Here is the relevant piece of the build log for the reference
Step 8 (Add check check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -S -passes=instsimplify /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/opt -S -passes=instsimplify /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-nvptx64-nvidia-ubuntu running on as-builder-7 while building llvm at step 6 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/160/builds/9687

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/build/bin/FileCheck /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx64-nvidia-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder arc-builder running on arc-worker while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/8828

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /buildbot/worker/arc-folder/build/bin/opt -S -passes=instsimplify /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /buildbot/worker/arc-folder/build/bin/opt -S -passes=instsimplify /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /buildbot/worker/arc-folder/build/bin/FileCheck /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder clang-aarch64-quick running on linaro-clang-aarch64-quick while building llvm at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/9010

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -S -passes=instsimplify /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll | /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/opt -S -passes=instsimplify /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/tcwg-buildbot/worker/clang-aarch64-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
/home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-aarch64-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-dev-x86-64 running on ml-opt-dev-x86-64-b2 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/9940

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/ml-opt-dev-x86-64-b1/build/bin/opt -S -passes=instsimplify /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/opt -S -passes=instsimplify /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/ml-opt-dev-x86-64-b1/build/bin/FileCheck /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-rel-x86-64 running on ml-opt-rel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/185/builds/9816

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/ml-opt-rel-x86-64-b1/build/bin/opt -S -passes=instsimplify /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/opt -S -passes=instsimplify /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder premerge-monolithic-linux running on premerge-linux-1 while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/16913

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /build/buildbot/premerge-monolithic-linux/build/bin/opt -S -passes=instsimplify /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /build/buildbot/premerge-monolithic-linux/build/bin/opt -S -passes=instsimplify /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

MacDue added a commit that referenced this pull request Dec 8, 2024
@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder ml-opt-devrel-x86-64 running on ml-opt-devrel-x86-64-b1 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/9814

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -passes=instsimplify /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/FileCheck /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/ml-opt-devrel-x86-64-b1/build/bin/opt -S -passes=instsimplify /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder clang-cmake-x86_64-avx512-linux running on avx512-intel64 while building llvm at step 7 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/8057

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -S -passes=instsimplify /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/InstSimplify/sincos.ll | /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/opt -S -passes=instsimplify /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/stage1/bin/FileCheck /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
/localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /localdisk2/buildbot/llvm-worker/clang-cmake-x86_64-avx512-linux/llvm/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder clang-armv8-quick running on linaro-clang-armv8-quick while building llvm at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/8683

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -S -passes=instsimplify /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll | /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/opt -S -passes=instsimplify /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/tcwg-buildbot/worker/clang-armv8-quick/stage1/bin/FileCheck /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
/home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/clang-armv8-quick/llvm/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder clang-m68k-linux-cross running on suse-gary-m68k-cross while building llvm at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/3144

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/opt -S -passes=instsimplify /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/InstSimplify/sincos.ll | /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/opt -S -passes=instsimplify /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
+ /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/bin/FileCheck /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/InstSimplify/sincos.ll
/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-expensive-checks-debian running on gribozavr4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/16/builds/10292

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -S -passes=instsimplify /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/opt -S -passes=instsimplify /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /b/1/llvm-clang-x86_64-expensive-checks-debian/build/bin/FileCheck /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /b/1/llvm-clang-x86_64-expensive-checks-debian/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/9722

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/opt -S -passes=instsimplify /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
�[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
�[0;1;32m              ^
�[0m�[1m<stdin>:24:60: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mdefine { <2 x float>, <2 x float> } @sincos_zero_vector() {
�[0;1;32m                                                           ^
�[0m�[1m<stdin>:25:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
�[0;1;32m ^
�[0m
Input file: <stdin>
Check file: /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
�[1m�[0m�[0;1;30m             1: �[0m�[1m�[0;1;46m; ModuleID = '/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll' �[0m
�[0;1;30m             2: �[0m�[1m�[0;1;46msource_filename = "/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll" �[0m
�[0;1;30m             3: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m             4: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_zero() {�[0;1;46m �[0m
�[0;1;32mlabel:4'0       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:4'1       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             5: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
�[0;1;32mnext:5           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             6: �[0m�[1m�[0;1;46m} �[0m
�[0;1;30m             7: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m             8: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_neg_zero() {�[0;1;46m �[0m
�[0;1;32mlabel:12'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:12'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             9: �[0m�[1m�[0;1;46m �[0mret { float, float } { float -0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
�[0;1;32mnext:13          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m            10: �[0m�[1m�[0;1;46m} �[0m
�[0;1;30m            11: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m            12: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_one() {�[0;1;46m �[0m
�[0;1;32mlabel:20'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:20'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m            13: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0x3FEAED5480000000, float 0x3FE14A2800000000 }�[0;1;46m �[0m
�[0;1;32mnext:21'0        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mnext:21'1                                     ^~~~~~~~~~~~~~~~~~                              captured var "$SIN_ONE"
�[0m�[0;1;32mnext:21'2                                                               ^~~~~~~~~~~~~~~~~~    captured var "$COS_ONE"
�[0m�[0;1;30m            14: �[0m�[1m�[0;1;46m} �[0m
...

@MacDue
Copy link
Member Author

MacDue commented Dec 8, 2024

Reverted this for now (#119149). I'll look into the buildbot issues and reland tomorrow.

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building llvm at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/9157

Here is the relevant piece of the build log for the reference
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe -S -passes=instsimplify Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' -S -passes=instsimplify 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll'
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll'
# .---command stderr------------
# | �[1mZ:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll:45:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m# | �[1m�[0m; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
# | �[0;1;32m              ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:24:60: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0m# | �[1m�[0mdefine { <2 x float>, <2 x float> } @sincos_zero_vector() {
# | �[0;1;32m                                                           ^
�[0m# | �[0;1;32m�[0m�[1m<stdin>:25:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m# | �[1m�[0m ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
# | �[0;1;32m ^
�[0m# | �[0;1;32m�[0m
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# | �[1m�[0m�[0;1;30m             1: �[0m�[1m�[0;1;46m; ModuleID = 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstSimplify\sincos.ll' �[0m
# | �[0;1;30m             2: �[0m�[1m�[0;1;46msource_filename = "Z:\\b\\llvm-clang-x86_64-sie-win\\llvm-project\\llvm\\test\\Transforms\\InstSimplify\\sincos.ll" �[0m
# | �[0;1;30m             3: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;30m             4: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_zero() {�[0;1;46m �[0m
# | �[0;1;32mlabel:4'0       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;32mlabel:4'1       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m             5: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
# | �[0;1;32mnext:5           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m             6: �[0m�[1m�[0;1;46m} �[0m
# | �[0;1;30m             7: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;30m             8: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_neg_zero() {�[0;1;46m �[0m
# | �[0;1;32mlabel:12'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;32mlabel:12'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m             9: �[0m�[1m�[0;1;46m �[0mret { float, float } { float -0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
# | �[0;1;32mnext:13          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m            10: �[0m�[1m�[0;1;46m} �[0m
# | �[0;1;30m            11: �[0m�[1m�[0;1;46m �[0m
# | �[0;1;30m            12: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_one() {�[0;1;46m �[0m
# | �[0;1;32mlabel:20'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;32mlabel:20'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;30m            13: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0x3FEAED5480000000, float 0x3FE14A2800000000 }�[0;1;46m �[0m
# | �[0;1;32mnext:21'0        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m# | �[0;1;32m�[0m�[0;1;32mnext:21'1                                     ^~~~~~~~~~~~~~~~~~                              captured var "$SIN_ONE"
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder clang-debian-cpp20 running on clang-debian-cpp20 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/6864

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/opt -S -passes=instsimplify /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/FileCheck /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/opt -S -passes=instsimplify /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-5 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/10948

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -S -passes=instsimplify /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -S -passes=instsimplify /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
�[1m/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: �[0m�[0;1;31merror: �[0m�[1mCHECK-NEXT: expected string not found in input
�[0m; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
�[0;1;32m              ^
�[0m�[1m<stdin>:24:60: �[0m�[0;1;30mnote: �[0m�[1mscanning from here
�[0mdefine { <2 x float>, <2 x float> } @sincos_zero_vector() {
�[0;1;32m                                                           ^
�[0m�[1m<stdin>:25:2: �[0m�[0;1;30mnote: �[0m�[1mpossible intended match here
�[0m ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
�[0;1;32m ^
�[0m
Input file: <stdin>
Check file: /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
�[1m�[0m�[0;1;30m             1: �[0m�[1m�[0;1;46m; ModuleID = '/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll' �[0m
�[0;1;30m             2: �[0m�[1m�[0;1;46msource_filename = "/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll" �[0m
�[0;1;30m             3: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m             4: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_zero() {�[0;1;46m �[0m
�[0;1;32mlabel:4'0       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:4'1       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             5: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
�[0;1;32mnext:5           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             6: �[0m�[1m�[0;1;46m} �[0m
�[0;1;30m             7: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m             8: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_neg_zero() {�[0;1;46m �[0m
�[0;1;32mlabel:12'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:12'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m             9: �[0m�[1m�[0;1;46m �[0mret { float, float } { float -0.000000e+00, float 1.000000e+00 }�[0;1;46m �[0m
�[0;1;32mnext:13          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m            10: �[0m�[1m�[0;1;46m} �[0m
�[0;1;30m            11: �[0m�[1m�[0;1;46m �[0m
�[0;1;30m            12: �[0m�[1m�[0;1;46m�[0mdefine { float, float } @sincos_one() {�[0;1;46m �[0m
�[0;1;32mlabel:20'0      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mlabel:20'1      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;30m            13: �[0m�[1m�[0;1;46m �[0mret { float, float } { float 0x3FEAED5480000000, float 0x3FE14A2800000000 }�[0;1;46m �[0m
�[0;1;32mnext:21'0        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[0;1;32mnext:21'1                                     ^~~~~~~~~~~~~~~~~~                              captured var "$SIN_ONE"
�[0m�[0;1;32mnext:21'2                                                               ^~~~~~~~~~~~~~~~~~    captured var "$COS_ONE"
�[0m�[0;1;30m            14: �[0m�[1m�[0;1;46m} �[0m
...

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-a-1 while building llvm at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/9396

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
[1350/1353] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LoopPassManagerTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1351/1353] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[1352/1353] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/wasm-ld
-- Testing: 57233 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.
FAIL: LLVM :: Transforms/InstSimplify/sincos.ll (44499 of 57233)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/opt -S -passes=instsimplify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/opt -S -passes=instsimplify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
Step 7 (check) failure: check (failure)
...
[1350/1353] Building CXX object unittests/Transforms/Scalar/CMakeFiles/ScalarTests.dir/LoopPassManagerTest.cpp.o
clang++: warning: optimization flag '-ffat-lto-objects' is not supported [-Wignored-optimization-argument]
[1351/1353] Linking CXX executable unittests/Transforms/Scalar/ScalarTests
[1352/1353] Running the LLVM regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:506: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/wasm-ld
-- Testing: 57233 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.
FAIL: LLVM :: Transforms/InstSimplify/sincos.ll (44499 of 57233)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/opt -S -passes=instsimplify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/opt -S -passes=instsimplify /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-ufl3gadc/bin/FileCheck /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match

@llvm-ci
Copy link
Collaborator

llvm-ci commented Dec 8, 2024

LLVM Buildbot has detected a new failure on builder lld-x86_64-ubuntu-fast running on as-builder-4 while building llvm at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/7883

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstSimplify/sincos.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 1: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -S -passes=instsimplify /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll | /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/opt -S -passes=instsimplify /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
+ /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/build/bin/FileCheck /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll
/home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll:45:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> <float 1.000000e+00, float 1.000000e+00> }
              ^
<stdin>:24:60: note: scanning from here
define { <2 x float>, <2 x float> } @sincos_zero_vector() {
                                                           ^
<stdin>:25:2: note: possible intended match here
 ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) }
 ^

Input file: <stdin>
Check file: /home/buildbot/worker/as-builder-4/ramdisk/lld-x86_64/llvm-project/llvm/test/Transforms/InstSimplify/sincos.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          19:  
          20: define { <2 x float>, <2 x float> } @sincos_vector() { 
          21:  ret { <2 x float>, <2 x float> } { <2 x float> <float 0x3FEAED5480000000, float 0x3FED18F6E0000000>, <2 x float> <float 0x3FE14A2800000000, float 0xBFDAA22660000000> } 
          22: } 
          23:  
          24: define { <2 x float>, <2 x float> } @sincos_zero_vector() { 
next:45'0                                                                X error: no match found
          25:  ret { <2 x float>, <2 x float> } { <2 x float> zeroinitializer, <2 x float> splat (float 1.000000e+00) } 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:45'1      ?                                                                                                         possible intended match
          26: } 
next:45'0     ~~
          27:  
next:45'0     ~
          28: define { float, float } @sincos_poison() { 
next:45'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %ret = call { float, float } @llvm.sincos.f32(float poison) 
          30:  ret { float, float } %ret 
           .
           .
           .
>>>>>>
...

MacDue added a commit that referenced this pull request Dec 9, 2024
…119192)

This calls into the existing constant folding for `llvm.sin` and
`llvm.cos`, which currently does not fold for any non-finite values, so
most tests are negative tests at the moment.

Note: The constant folding does not consider the `afn` fast-math flag
and will produce the same result regardless of if the flag is set.

This is a reland of #114527 that updates the syntax of one of the tests
from: `<float 1.000000e+00, float 1.000000e+00>` to `splat (float
1.000000e+00)`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants