xref: /llvm-project/clang/test/CodeGen/X86/amxcomplex-builtins.c (revision 038b7e6b761c2bebb30440cdd39252a0fa74ac3f)
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +amx-tile -target-feature +amx-complex \
2 // RUN: -emit-llvm -o - -Wall -Werror -pedantic -Wno-gnu-statement-expression | FileCheck %s
3 
4 #include <immintrin.h>
5 #include <stddef.h>
test_tile_cmmimfp16ps(void)6 void test_tile_cmmimfp16ps(void) {
7   // CHECK-LABEL: @test_tile_cmmimfp16ps
8   // CHECK: call void @llvm.x86.tcmmimfp16ps(i8 1, i8 2, i8 3)
9   _tile_cmmimfp16ps(1, 2, 3);
10 }
11 
test_tile_cmmrlfp16ps(void)12 void test_tile_cmmrlfp16ps(void) {
13   // CHECK-LABEL: @test_tile_cmmrlfp16ps
14   // CHECK: call void @llvm.x86.tcmmrlfp16ps(i8 1, i8 2, i8 3)
15   _tile_cmmrlfp16ps(1, 2, 3);
16 }
17