blob: 7f80194442da2fc5d45cdd243705b0eca0df0b08 [file] [log] [blame]
// RUN: clspv --long-vector %s -o %t.spv -cl-native-math
// RUN: spirv-dis %t.spv -o - | FileCheck %s
// RUN: spirv-val --target-env vulkan1.0 %t.spv
// Check that fma 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]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
// CHECK: OpExtInst [[FLOAT]] [[GLSL]] Fma
void kernel test(global float8 *in, global float8 *out) {
*out = fma(in[0], in[1], in[2]);
}