1 // RUN: %clang_cc1 -finclude-default-header -triple \
2 // RUN: dxil-pc-shadermodel6.3-compute %s -emit-llvm -disable-llvm-passes -o - | \
3 // RUN: FileCheck %s -DTARGET=dx
4 // RUN: %clang_cc1 -finclude-default-header -triple \
5 // RUN: spirv-pc-vulkan-compute %s -emit-llvm -disable-llvm-passes -o - | \
6 // RUN: FileCheck %s -DTARGET=spv
8 // Test basic lowering to runtime function call.
11 int test(uint a, uint b, int c) {
12 // CHECK: %[[RET:.*]] = call [[TY:i32]] @llvm.[[TARGET]].dot4add.i8packed([[TY]] %[[#]], [[TY]] %[[#]], [[TY]] %[[#]])
13 // CHECK: ret [[TY]] %[[RET]]
14 return dot4add_i8packed(a, b, c);
17 // CHECK: declare [[TY]] @llvm.[[TARGET]].dot4add.i8packed([[TY]], [[TY]], [[TY]])