From 5b602f8822e391dc1c933c0d48aaf80bf4c4ed5d Mon Sep 17 00:00:00 2001 From: Bruno Cardoso Lopes Date: Fri, 6 Aug 2010 22:10:01 +0000 Subject: [PATCH] Patterns to match AVX 256-bit vzero intrinsics llvm-svn: 110480 --- include/llvm/IntrinsicsX86.td | 4 ++-- lib/Target/X86/X86InstrSSE.td | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/llvm/IntrinsicsX86.td b/include/llvm/IntrinsicsX86.td index e620d91fbe4..cf1b8e9f4eb 100644 --- a/include/llvm/IntrinsicsX86.td +++ b/include/llvm/IntrinsicsX86.td @@ -1272,9 +1272,9 @@ let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". // Vector zero let TargetPrefix = "x86" in { // All intrinsics start with "llvm.x86.". def int_x86_avx_vzeroall : GCCBuiltin<"__builtin_ia32_vzeroall">, - Intrinsic<[], [], [IntrNoMem]>; + Intrinsic<[], [], []>; def int_x86_avx_vzeroupper : GCCBuiltin<"__builtin_ia32_vzeroupper">, - Intrinsic<[], [], [IntrNoMem]>; + Intrinsic<[], [], []>; } // Vector load with broadcast diff --git a/lib/Target/X86/X86InstrSSE.td b/lib/Target/X86/X86InstrSSE.td index 135850fe126..ab5329d5eff 100644 --- a/lib/Target/X86/X86InstrSSE.td +++ b/lib/Target/X86/X86InstrSSE.td @@ -5408,12 +5408,12 @@ def VPERM2F128rm : AVXAIi8<0x06, MRMSrcMem, (outs VR256:$dst), []>, VEX_4V; // Zero All YMM registers -def VZEROALL : I<0x77, RawFrm, (outs), (ins), "vzeroall", []>, VEX, VEX_L, - Requires<[HasAVX]>; +def VZEROALL : I<0x77, RawFrm, (outs), (ins), "vzeroall", + [(int_x86_avx_vzeroall)]>, VEX, VEX_L, Requires<[HasAVX]>; // Zero Upper bits of YMM registers -def VZEROUPPER : I<0x77, RawFrm, (outs), (ins), "vzeroupper", []>, VEX, - Requires<[HasAVX]>; +def VZEROUPPER : I<0x77, RawFrm, (outs), (ins), "vzeroupper", + [(int_x86_avx_vzeroupper)]>, VEX, Requires<[HasAVX]>; } // isAsmParserOnly