================ @@ -1,12 +1,14 @@ ; This test aims to check ability to support "Arithmetic with Overflow" intrinsics ; in the special case when those intrinsics are being generated by the CodeGenPrepare; -; pass during translations with optimization (note -O3 in llc arguments). +; pass during translations with optimization (note -disable-lsr, to inhibit +; strength reduction pre-empting with a more preferable match for this pattern +; in llc arguments). -; RUN: llc -O3 -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s -; RUN: %if spirv-tools %{ llc -O3 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %} +; RUN: llc -O3 -disable-lsr -mtriple=spirv32-unknown-unknown %s -o - | FileCheck %s ---------------- VyacheslavLevytskyy wrote:
Happy to help with motivation. The original intent is to have a minimized reproducer of an issue as a part of the test suite. The point of the test case is to feed SPIR-V Backend with LLVM IR without saturation arithmetic intrinsics and ensure that SPIR-V Backend is able to deal with those intrinsics appearing along the way in translation. There is a separate test case in the test suite for the same intrinsics explicitly represented in the input LLVM IR, and it's another case, different from this one. https://github.com/llvm/llvm-project/pull/110695 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits