Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaOpenCL / builtins-amdgcn-error-gfx9.cl
blobc9fd8ab2cae86cbc8e014976d56e777a3930cdd6
1 // REQUIRES: amdgpu-registered-target
2 // RUN: %clang_cc1 -triple amdgcn-- -target-cpu fiji -verify -S -o - %s
4 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
6 void test_gfx9_fmed3h(global half *out, half a, half b, half c)
8 *out = __builtin_amdgcn_fmed3h(a, b, c); // expected-error {{'__builtin_amdgcn_fmed3h' needs target feature gfx9-insts}}