[clang] [Clang][Driver] Add new flags to control machine instruction verification (PR #70282)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 22:44:46 PDT 2023


================
@@ -525,6 +525,11 @@
 // CHECK-VERIFY-INTERMEDIATE-CODE-NOT: "-disable-llvm-verifier"
 // CHECK-NO-VERIFY-INTERMEDIATE-CODE: "-disable-llvm-verifier"
 
+// RUN: %clang -### -S -fverify-machine-code %s 2>&1 | FileCheck -check-prefix=CHECK-VERIFY-MACHINE-CODE %s
+// RUN: %clang -### -S -fno-verify-machine-code %s 2>&1 | FileCheck -check-prefix=CHECK-NO-VERIFY-MACHINE-CODE %s
----------------
MaskRay wrote:

If you want to strengthen this RUN line, `-fverify-machine-code -fno-verify-machine-code`

https://github.com/llvm/llvm-project/pull/70282


More information about the cfe-commits mailing list