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