blob: a453269f08415059ca993e972174ed28272c1d1f [file]
// RUN: clspv --long-vector %s -o %t.spv
// RUN: spirv-dis %t.spv -o - | FileCheck %s
// RUN: spirv-val --target-env vulkan1.0 %t.spv
// Check that exp for float8 is supported.
// CHECK: [[GLSL:%[0-9a-zA-Z_]+]] = OpExtInstImport "GLSL.std.450"
//
// CHECK: [[FLOAT:%[0-9a-zA-Z_]+]] = OpTypeFloat 32
//
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Exp
void kernel test(global float8 *in, global float8 *out) {
*out = exp(*in);
}