[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / X86 / amx_fp8_inline_asm.c
blob49331bd9d368abb3f59f78bd06f0feceab272cb5
1 // RUN: %clang_cc1 %s -ffreestanding -triple=x86_64-unknown-unknown -target-feature +amx-fp8 -emit-llvm -o - -Wall -Werror -pedantic | FileCheck %s
3 void f_tilemul(short a)
5 //CHECK: call void asm sideeffect "tileloadd 0(%rsi,%r13,4), %tmm0 \0A\09tileloadd 0(%rdx,%r14,4), %tmm6 \0A\09tdpbf8ps %tmm6, %tmm0, %tmm7 \0A\09tilestored %tmm7, 0(%r12,%r15,4) \0A\09", "~{memory},~{tmm0},~{tmm6},~{tmm7},~{dirflag},~{fpsr},~{flags}"()
6 __asm__ volatile ("tileloadd 0(%%rsi,%%r13,4), %%tmm0 \n\t"
7 "tileloadd 0(%%rdx,%%r14,4), %%tmm6 \n\t"
8 "tdpbf8ps %%tmm6, %%tmm0, %%tmm7 \n\t"
9 "tilestored %%tmm7, 0(%%r12,%%r15,4) \n\t"
10 ::: "memory", "tmm0", "tmm6", "tmm7");
12 //CHECK: call void asm sideeffect "tileloadd 0(%rsi,%r13,4), %tmm0 \0A\09tileloadd 0(%rdx,%r14,4), %tmm6 \0A\09tdpbhf8ps %tmm6, %tmm0, %tmm7 \0A\09tilestored %tmm7, 0(%r12,%r15,4) \0A\09", "~{memory},~{tmm0},~{tmm6},~{tmm7},~{dirflag},~{fpsr},~{flags}"()
13 __asm__ volatile ("tileloadd 0(%%rsi,%%r13,4), %%tmm0 \n\t"
14 "tileloadd 0(%%rdx,%%r14,4), %%tmm6 \n\t"
15 "tdpbhf8ps %%tmm6, %%tmm0, %%tmm7 \n\t"
16 "tilestored %%tmm7, 0(%%r12,%%r15,4) \n\t"
17 ::: "memory", "tmm0", "tmm6", "tmm7");
19 //CHECK: call void asm sideeffect "tileloadd 0(%rsi,%r13,4), %tmm0 \0A\09tileloadd 0(%rdx,%r14,4), %tmm6 \0A\09tdphbf8ps %tmm6, %tmm0, %tmm7 \0A\09tilestored %tmm7, 0(%r12,%r15,4) \0A\09", "~{memory},~{tmm0},~{tmm6},~{tmm7},~{dirflag},~{fpsr},~{flags}"()
20 __asm__ volatile ("tileloadd 0(%%rsi,%%r13,4), %%tmm0 \n\t"
21 "tileloadd 0(%%rdx,%%r14,4), %%tmm6 \n\t"
22 "tdphbf8ps %%tmm6, %%tmm0, %%tmm7 \n\t"
23 "tilestored %%tmm7, 0(%%r12,%%r15,4) \n\t"
24 ::: "memory", "tmm0", "tmm6", "tmm7");
26 //CHECK: call void asm sideeffect "tileloadd 0(%rsi,%r13,4), %tmm0 \0A\09tileloadd 0(%rdx,%r14,4), %tmm6 \0A\09tdphf8ps %tmm6, %tmm0, %tmm7 \0A\09tilestored %tmm7, 0(%r12,%r15,4) \0A\09", "~{memory},~{tmm0},~{tmm6},~{tmm7},~{dirflag},~{fpsr},~{flags}"()
27 __asm__ volatile ("tileloadd 0(%%rsi,%%r13,4), %%tmm0 \n\t"
28 "tileloadd 0(%%rdx,%%r14,4), %%tmm6 \n\t"
29 "tdphf8ps %%tmm6, %%tmm0, %%tmm7 \n\t"
30 "tilestored %%tmm7, 0(%%r12,%%r15,4) \n\t"
31 ::: "memory", "tmm0", "tmm6", "tmm7");