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

#include <immintrin.h>
#include <stddef.h>

void test_tile_mmultf32ps(void) {
  // CHECK-LABEL: @test_tile_mmultf32ps(
  // CHECK: call void @llvm.x86.tmmultf32ps(i8 1, i8 2, i8 3)
  _tile_mmultf32ps(1, 2, 3);
}

void test_tile_tmmultf32ps(void) {
  // CHECK-LABEL: @test_tile_tmmultf32ps(
  // CHECK: call void @llvm.x86.ttmmultf32ps(i8 1, i8 2, i8 3)
  _tile_tmmultf32ps(1, 2, 3);
}