xref: /llvm-project/clang/test/CodeGen/amx_fp16.c (revision 661881d43633c00e1ba2ec0ebbc1806d81ad9a11)
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown \
2 // RUN: -target-feature +amx-tile -target-feature +amx-int8 -target-feature +amx-bf16 -target-feature +amx-fp16 -emit-llvm -o - -Wall -Werror -pedantic \
3 // RUN: -Wno-gnu-statement-expression| FileCheck %s
4 
5 #include <immintrin.h>
6 #include <stddef.h>
test_tile_dpfp16ps(void)7 void test_tile_dpfp16ps(void) {
8   // CHECK-LABEL: @test_tile_dpfp16ps
9   // CHECK: call void @llvm.x86.tdpfp16ps(i8 1, i8 2, i8 3)
10   _tile_dpfp16ps(1, 2, 3);
11 }
12