From ae2e51597f6e9478b7ccbdf1cf633540d7d1e8b3 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 3 Oct 2020 21:54:59 -0700 Subject: [PATCH] [X86] LOADIWKEY, ENCODEKEY128 and ENCODEKEY256 clobber EFLAGS. --- llvm/lib/Target/X86/X86InstrKL.td | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Target/X86/X86InstrKL.td b/llvm/lib/Target/X86/X86InstrKL.td index d17a1e9f93dc..aa7df4256cec 100644 --- a/llvm/lib/Target/X86/X86InstrKL.td +++ b/llvm/lib/Target/X86/X86InstrKL.td @@ -17,18 +17,18 @@ // Key Locker instructions let SchedRW = [WriteSystem], Predicates = [HasKL] in { - let Uses = [XMM0, EAX] in { + let Uses = [XMM0, EAX], Defs = [EFLAGS] in { def LOADIWKEY : I<0xDC, MRMSrcReg, (outs), (ins VR128:$src1, VR128:$src2), "loadiwkey\t{$src2, $src1|$src1, $src2}", [(int_x86_loadiwkey EAX, XMM0, VR128:$src1, VR128:$src2)]>, T8XS; } - let Uses = [XMM0], Defs = [XMM0, XMM1, XMM2, XMM4, XMM5, XMM6] in { + let Uses = [XMM0], Defs = [XMM0, XMM1, XMM2, XMM4, XMM5, XMM6, EFLAGS] in { def ENCODEKEY128 : I<0xFA, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src), "encodekey128\t{$src, $dst|$dst, $src}", []>, T8XS; } - let Uses = [XMM0, XMM1], Defs = [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6] in { + let Uses = [XMM0, XMM1], Defs = [XMM0, XMM1, XMM2, XMM3, XMM4, XMM5, XMM6, EFLAGS] in { def ENCODEKEY256 : I<0xFB, MRMSrcReg, (outs GR32:$dst), (ins GR32:$src), "encodekey256\t{$src, $dst|$dst, $src}", []>, T8XS; }