From 1f4ba951456308a51cfab30a095b61a71bd368ab Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 30 Jun 2018 22:38:41 +0000 Subject: [PATCH] [X86] Remove the AsmName from the HAX,HDX,HCX,HBX,HSI,HDI,HBP,HSP,HIP artificial registers so they can't be parsed by the assembly parser. There are no instructions that use them so they weren't causing any bad matches. But they weren't being diagnosed as "invalid register name" if they were used and would instead trigger some form of invalid operand. llvm-svn: 336054 --- lib/Target/X86/X86RegisterInfo.td | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/Target/X86/X86RegisterInfo.td b/lib/Target/X86/X86RegisterInfo.td index 0e5bf078fa1..8f7f383de3e 100644 --- a/lib/Target/X86/X86RegisterInfo.td +++ b/lib/Target/X86/X86RegisterInfo.td @@ -90,15 +90,15 @@ def SP : X86Reg<"sp", 4, [SPL]>; def IP : X86Reg<"ip", 0>; let isArtificial = 1 in { - def HAX : X86Reg<"hax", -1>; - def HDX : X86Reg<"hdx", -3>; - def HCX : X86Reg<"hcx", -2>; - def HBX : X86Reg<"hbx", -4>; - def HSI : X86Reg<"hsi", -7>; - def HDI : X86Reg<"hdi", -8>; - def HBP : X86Reg<"hbp", -6>; - def HSP : X86Reg<"hsp", -5>; - def HIP : X86Reg<"hip", -1>; + def HAX : X86Reg<"", -1>; + def HDX : X86Reg<"", -3>; + def HCX : X86Reg<"", -2>; + def HBX : X86Reg<"", -4>; + def HSI : X86Reg<"", -7>; + def HDI : X86Reg<"", -8>; + def HBP : X86Reg<"", -6>; + def HSP : X86Reg<"", -5>; + def HIP : X86Reg<"", -1>; } // X86-64 only, requires REX.