| 1 | // REQUIRES: amdgpu-registered-target |
|---|---|
| 2 | // RUN: %clang_cc1 -triple amdgcn-unknown-unknown -target-cpu gfx900 -S -emit-llvm -o - %s | FileCheck %s |
| 3 | |
| 4 | #pragma OPENCL EXTENSION cl_khr_fp16 : enable |
| 5 | |
| 6 | // CHECK-LABEL: @test_fmed3_f16 |
| 7 | // CHECK: call half @llvm.amdgcn.fmed3.f16(half %a, half %b, half %c) |
| 8 | void test_fmed3_f16(global half* out, half a, half b, half c) |
| 9 | { |
| 10 | *out = __builtin_amdgcn_fmed3h(a, b, c); |
| 11 | } |
| 12 |