aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/X86/amxcomplex-builtins.c
blob: a5478b0395501a7693a57c64c0734eb7c3fa3be2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +amx-tile -target-feature +amx-complex \
// RUN: -emit-llvm -o - -Wall -Werror -pedantic -Wno-gnu-statement-expression | FileCheck %s

#include <immintrin.h>
#include <stddef.h>
void test_tile_cmmimfp16ps(void) {
  // CHECK-LABEL: @test_tile_cmmimfp16ps
  // CHECK: call void @llvm.x86.tcmmimfp16ps(i8 1, i8 2, i8 3)
  _tile_cmmimfp16ps(1, 2, 3);
}

void test_tile_cmmrlfp16ps(void) {
  // CHECK-LABEL: @test_tile_cmmrlfp16ps
  // CHECK: call void @llvm.x86.tcmmrlfp16ps(i8 1, i8 2, i8 3)
  _tile_cmmrlfp16ps(1, 2, 3);
}