| ; RUN: clspv-opt -ReplaceOpenCLBuiltin %s -o %t.ll | |
| ; RUN: FileCheck %s < %t.ll | |
| target datalayout = "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024" | |
| target triple = "spir-unknown-unknown" | |
| ; CHECK: ret <3 x half> %x | |
| define <3 x half>@foo(<3 x half> %x) { | |
| entry: | |
| %call = call <3 x half> @_Z13convert_half3Dv3_Dh(<3 x half> %x) | |
| ret <3 x half> %call | |
| } | |
| declare <3 x half> @_Z13convert_half3Dv3_Dh(<3 x half>) |