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>
11 lines
366 B
LLVM
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
|
|
}
|