[llvm] [SPIRV] Frexp intrinsic implementation (PR #157436)

Michal Paszkowski via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 11 09:26:00 PDT 2025


================
@@ -0,0 +1,114 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
+; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %}
+
+; CHECK: %[[#extinst_id:]] = OpExtInstImport "OpenCL.std"
+; CHECK: %[[#float_32_type:]] = OpTypeFloat 32
+; CHECK: %[[#int_32_type:]] = OpTypeInt 32 0
----------------
michalpaszkowski wrote:

Please change `CHECK` to `CHECK-DAG` on lines which do not need to be in particular order (e.g. OpType... lines). This way the test is more flexible in case this order changes in the future.

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


More information about the llvm-commits mailing list