blob: 9b8e26cda97ed7edc1898f2f2c45eab0100eb61c [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> @expm1_float2(<2 x float> %x) {
entry:
%call = call spir_func <2 x float> @_Z5expm1Dv2_f(<2 x float> %x)
ret <2 x float> %call
}
declare spir_func <2 x float> @_Z5expm1Dv2_f(<2 x float> %x)
; CHECK: [[exp:%[a-zA-Z0-9_.]+]] = call <2 x float> @llvm.exp.v2f32(<2 x float> %x)
; CHECK: [[sub:%[a-zA-Z0-9_.]+]] = fsub <2 x float> [[exp]], <float 1.000000e+00, float 1.000000e+00>
; CHECK: ret <2 x float> [[sub]]