blob: f2befc1a5c05b663d0434352399fd1420f1c677b [file]
; RUN: clspv-opt -ReplaceOpenCLBuiltin %s -o %t.ll
; RUN: FileCheck %s < %t.ll
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024"
target triple = "spir64-unknown-unknown"
define <2 x float> @pown_float2(<2 x float> %x, <2 x i32> %y) {
entry:
%call = call spir_func <2 x float> @_Z4pownDv2fDv2_i(<2 x float> %x, <2 x i32> %y)
ret <2 x float> %call
}
declare spir_func <2 x float> @_Z4pownDv2fDv2_i(<2 x float>, <2 x i32>)
; CHECK: [[conv:%[a-zA-Z0-9_.]+]] = sitofp <2 x i32> %y to <2 x float>
; CHECK: [[call:%[a-zA-Z0-9_.]+]] = call <2 x float> @llvm.pow.v2f32(<2 x float> %x, <2 x float> [[conv]])
; CHECK: ret <2 x float> [[call]]