Subash B 37eda40dd2
[SPIRV] Porting Test from Translator (#152247)
These tests verify SPIR-V code generation for LLVM intrinsics and atomic
operations, ensuring correct translation of fcmp false, llvm.fake.use,
and atomic_compare_exchange.

---------

Co-authored-by: Michal Paszkowski <michal@michalpaszkowski.com>
2025-10-14 23:34:28 -07:00

11 lines
366 B
LLVM

; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv32-unknown-unknown %s -o - -filetype=obj | spirv-val %}
; CHECK: %[[#FalseVal:]] = OpConstantFalse %[[#]]
; CHECK: OpReturnValue %[[#FalseVal:]]
define spir_func i1 @f(float %0) {
%2 = fcmp false float %0, %0
ret i1 %2
}