This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add test case for commit e52bc1d2bba794b.
ClosedPublic

Authored by LuoYuanke on Dec 12 2020, 7:15 PM.

Diff Detail

Event Timeline

LuoYuanke created this revision.Dec 12 2020, 7:15 PM
LuoYuanke requested review of this revision.Dec 12 2020, 7:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 12 2020, 7:15 PM
LuoYuanke edited the summary of this revision. (Show Details)Dec 12 2020, 7:17 PM
LuoYuanke added a subscriber: annita.zhang.
pengfei added inline comments.Dec 14 2020, 3:50 AM
llvm/test/CodeGen/X86/AMX/amx-intrinsic-chain.ll
5

The triple is different from RUN command, you can just remove it. Or remove the mtriple from command line.

13

Does the adding chain that generates more __tile1024i initialization here?
But why do we need to generate more initialization for the same row and col?

64

I think you can add avx512f in "target-features" and remove -mattr=+amx-int8 -mattr=+avx512f in run line.

LuoYuanke updated this revision to Diff 311547.Dec 14 2020, 4:07 AM

Address Pengfei's comments.

LuoYuanke marked 2 inline comments as done.Dec 14 2020, 4:08 AM
LuoYuanke added inline comments.Dec 14 2020, 4:11 AM
llvm/test/CodeGen/X86/AMX/amx-intrinsic-chain.ll
13

Adding chain doesn't generate more __tile1024i initialization. There 5 movb for row, 5 movw for column and movb $1, ... for palette. There are 5 tmm register allocated, so the initialization is correct.

LuoYuanke added inline comments.Dec 14 2020, 4:12 AM
llvm/test/CodeGen/X86/AMX/amx-intrinsic-chain.ll
13

One of the tilestore is deleted during instruction selection if we don't add chain.

LuoYuanke updated this revision to Diff 311549.Dec 14 2020, 4:13 AM

Rename function name.

LuoYuanke updated this revision to Diff 311742.Dec 14 2020, 4:29 PM

Fix function name check.

pengfei accepted this revision.Dec 14 2020, 6:23 PM

LGTM.

llvm/test/CodeGen/X86/AMX/amx-intrinsic-chain.ll
13

I see. Thanks.

This revision is now accepted and ready to land.Dec 14 2020, 6:23 PM
This revision was landed with ongoing or failed builds.Dec 14 2020, 7:14 PM
This revision was automatically updated to reflect the committed changes.