[Matrix] Add -matrix-allow-contract=false to tests.
authorFlorian Hahn <flo@fhahn.com>
Mon, 7 Jun 2021 10:53:17 +0000 (11:53 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 7 Jun 2021 11:13:20 +0000 (12:13 +0100)
Explicitly specify contract behavior, so the tests are independent of
the current default of the flag.

llvm/test/Transforms/LowerMatrixIntrinsics/const-gep.ll
llvm/test/Transforms/LowerMatrixIntrinsics/preserve-existing-fast-math-flags.ll
llvm/test/Transforms/LowerMatrixIntrinsics/propagate-backward.ll
llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll
llvm/test/Transforms/LowerMatrixIntrinsics/propagate-multiple-iterations.ll

index d836d8d..f85a450 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -lower-matrix-intrinsics -S < %s | FileCheck  %s
+; RUN: opt -matrix-allow-contract=false -lower-matrix-intrinsics -S < %s | FileCheck  %s
 
 ; Make sure we correctly lower in the presence of getelementptr constant
 ; expressions.
index f5c1158..93f4e59 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -lower-matrix-intrinsics -S < %s | FileCheck %s
+; RUN: opt -matrix-allow-contract=false -lower-matrix-intrinsics -S < %s | FileCheck %s
 
 define <4 x float> @preserve_fmf_fast(<4 x float> %m, <4 x float> %n) {
 ; CHECK-LABEL: @preserve_fmf_fast(
index 0860d7a..bc68c7c 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -lower-matrix-intrinsics -S < %s | FileCheck  %s
-; RUN: opt -passes='lower-matrix-intrinsics' -S < %s | FileCheck %s
+; RUN: opt -matrix-allow-contract=false -lower-matrix-intrinsics -S < %s | FileCheck  %s
+; RUN: opt -matrix-allow-contract=false -passes='lower-matrix-intrinsics' -S < %s | FileCheck %s
 
 define <8 x double> @fadd_transpose(<8 x double> %a, <8 x double> %b) {
 ; CHECK-LABEL: @fadd_transpose(
index 6095957..963f59e 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -lower-matrix-intrinsics -S < %s | FileCheck  %s
-; RUN: opt -passes='lower-matrix-intrinsics' -S < %s | FileCheck %s
+; RUN: opt -matrix-allow-contract=false -lower-matrix-intrinsics -S < %s | FileCheck  %s
+; RUN: opt -matrix-allow-contract=false -passes='lower-matrix-intrinsics' -S < %s | FileCheck %s
 
 ; Check that we do not emit shufflevectors to flatten the result of the
 ; transpose and store the columns directly.
index cc51782..db3ae05 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -lower-matrix-intrinsics -S < %s | FileCheck %s
-; RUN: opt -passes='lower-matrix-intrinsics' -S < %s | FileCheck %s
+; RUN: opt -matrix-allow-contract=false -lower-matrix-intrinsics -S < %s | FileCheck %s
+; RUN: opt -matrix-allow-contract=false -passes='lower-matrix-intrinsics' -S < %s | FileCheck %s
 
 
 ; Make sure we propagate in multiple iterations. First, we back-propagate the