[PATCH] D125404: [SPIRV] Add SPIR-V tests
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 11 10:48:43 PDT 2022
MaskRay added inline comments.
================
Comment at: llvm/test/CodeGen/SPIRV/TruncToBool.ll:3
+
+; CHECK-SPIRV: OpBitwiseAnd
+; CHECK-SPIRV-NEXT: OpINotEqual
----------------
================
Comment at: llvm/test/CodeGen/SPIRV/TruncToBool.ll:6
+
+; LLVM IR was generated with -cl-std=c++ option
+
----------------
`;;`
================
Comment at: llvm/test/CodeGen/SPIRV/llvm-intrinsics/ctpop.ll:2
+; RUN: llc -O0 %s -o - | FileCheck %s
+
+
----------------
Keep just one blank line
================
Comment at: llvm/test/CodeGen/SPIRV/llvm-intrinsics/ctpop.ll:4
+
+; CHECK: %{{[0-9]+}} = OpBitCount %{{[0-9]+}} %{{[0-9]+}}
+; CHECK: %{{[0-9]+}} = OpBitCount %{{[0-9]+}} %{{[0-9]+}}
----------------
`[[#]]` instead of `{{[0-9]+}}`
================
Comment at: llvm/test/CodeGen/SPIRV/transcoding/OpSwitchEmpty.ll:1
+; Source:
+; void kk(int x){
----------------
You may use `;; ` for non-RUN non-CHECK lines.
`Source:` and `Command:` may be recognized as incorrect check prefixes by lit/FileCheck in the future. `;;` makes it clear it is for pure comments.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125404/new/
https://reviews.llvm.org/D125404
More information about the llvm-commits
mailing list