blob: b36da3843ed32abd6516590951d9627d774e3101 [file] [log] [blame]
// 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 max 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]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
// CHECK: = OpExtInst [[FLOAT]] [[GLSL]] FMax
void kernel test(global float8 *in, global float8 *out) {
*out = max(in[0], in[1]);
}