From 78be212d1b370651bc834cf0c504b4a3a1aed5b7 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 29 Dec 2011 18:00:08 +0000 Subject: [PATCH] Mark non-VEX forms of AES instructions as requiring SSE2 to be enabled along with AES. Since that's required for the XMM registers to be valid for integer data. Doesn't change any behavior though since you can't use an intrinsic with an illegal type anyway. Just makes it consistent with the VEX forms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147344 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/X86/X86InstrFormats.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Target/X86/X86InstrFormats.td b/lib/Target/X86/X86InstrFormats.td index 7ba36392e29..739fa3521f9 100644 --- a/lib/Target/X86/X86InstrFormats.td +++ b/lib/Target/X86/X86InstrFormats.td @@ -483,12 +483,12 @@ class AVX2AIi8 o, Format F, dag outs, dag ins, string asm, class AES8I o, Format F, dag outs, dag ins, string asm, listpattern> : I, T8, - Requires<[HasAES]>; + Requires<[HasSSE2, HasAES]>; class AESAI o, Format F, dag outs, dag ins, string asm, list pattern> : Ii8, TA, - Requires<[HasAES]>; + Requires<[HasSSE2, HasAES]>; // CLMUL Instruction Templates class CLMULIi8 o, Format F, dag outs, dag ins, string asm, -- 2.34.1