| 1 |
;; __kernel void fmod_kernel( float out, float in1, float in2 ) |
| 2 |
;; { out = fmod( in1, in2 ); } |
| 3 |
|
| 4 |
; RUN: llc -O0 -mtriple=spirv64-unknown-unknown %s -o - | FileCheck %s --check-prefix=CHECK-SPIRV |
| 5 |
; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %} |
| 6 |
|
| 7 |
; CHECK-SPIRV: %[[#]] = OpExtInst %[[#]] %[[#]] fmod %[[#]] %[[#]] |
| 8 |
|
| 9 |
define spir_kernel void @fmod_kernel(float %out, float %in1, float %in2) { |
| 10 |
entry: |
| 11 |
%call = call spir_func float @_Z4fmodff(float %in1, float %in2) |
| 12 |
ret void |
| 13 |
} |
| 14 |
|
| 15 |
declare spir_func float @_Z4fmodff(float, float) |