[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / amx_movrs.c
blob4a8f001baafceabe131ed1a004eb3623c8578ce1
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown \
2 // RUN: -target-feature +amx-movrs -target-feature +avx512f \
3 // RUN: -emit-llvm -o - -Wall -Werror -pedantic \
4 // RUN: -Wno-gnu-statement-expression| FileCheck %s
6 #include <immintrin.h>
7 #include <stddef.h>
9 #define STRIDE 32
11 char buf[1024];
13 void test_tile_loadd(short row, short col) {
14 // CHECK-LABEL: define dso_local void @test_tile_loadd(
15 // CHECK: call x86_amx @llvm.x86.tileloaddrs64.internal(i16 %{{.*}}, i16 %{{.*}}, ptr %{{.*}}, i64 %{{.*}})
16 // CHECK-NEXT: call <256 x i32> @llvm.x86.cast.tile.to.vector.v256i32(x86_amx %{{.*}})
17 _tile_loaddrs_internal(row, col, buf, STRIDE);
20 void test_tile_loaddt1(short row, short col) {
21 // CHECK-LABEL: define dso_local void @test_tile_loaddt1(
22 // CHECK: call x86_amx @llvm.x86.tileloaddrst164.internal(i16 %{{.*}}, i16 %{{.*}}, ptr %{{.*}}, i64 %{{.*}})
23 // CHECK-NEXT: call <256 x i32> @llvm.x86.cast.tile.to.vector.v256i32(x86_amx %{{.*}})
24 _tile_loaddrst1_internal(row, col, buf, STRIDE);