diff --git a/lib/MC/MCExpr.cpp b/lib/MC/MCExpr.cpp index 992f0a756ca..c0396233c27 100644 --- a/lib/MC/MCExpr.cpp +++ b/lib/MC/MCExpr.cpp @@ -273,7 +273,7 @@ StringRef MCSymbolRefExpr::getVariantKindName(VariantKind Kind) { case VK_Mips_CALL_LO16: return "CALL_LO16"; case VK_Mips_PCREL_HI16: return "PCREL_HI16"; case VK_Mips_PCREL_LO16: return "PCREL_LO16"; - case VK_COFF_IMGREL32: return "IMGREL32"; + case VK_COFF_IMGREL32: return "IMGREL"; } llvm_unreachable("Invalid variant kind"); } diff --git a/test/MC/COFF/ir-to-imgrel.ll b/test/MC/COFF/ir-to-imgrel.ll index 39884d2a15e..dfc88b2a675 100644 --- a/test/MC/COFF/ir-to-imgrel.ll +++ b/test/MC/COFF/ir-to-imgrel.ll @@ -2,5 +2,5 @@ @__ImageBase = external global i8 -; X64: .quad "?x@@3HA"@IMGREL32 +; X64: .quad "?x@@3HA"@IMGREL @"\01?x@@3HA" = global i64 sub nsw (i64 ptrtoint (i64* @"\01?x@@3HA" to i64), i64 ptrtoint (i8* @__ImageBase to i64)), align 8 diff --git a/test/MC/X86/intel-syntax.s b/test/MC/X86/intel-syntax.s index 325f64d533b..c027aa426f3 100644 --- a/test/MC/X86/intel-syntax.s +++ b/test/MC/X86/intel-syntax.s @@ -606,7 +606,7 @@ mov rcx, qword ptr [_g0 + 8] fadd dword ptr "?half@?0??bar@@YAXXZ@4NA" fadd dword ptr "?half@?0??bar@@YAXXZ@4NA"@IMGREL // CHECK: fadds "?half@?0??bar@@YAXXZ@4NA" -// CHECK: fadds "?half@?0??bar@@YAXXZ@4NA"@IMGREL32 +// CHECK: fadds "?half@?0??bar@@YAXXZ@4NA"@IMGREL inc qword ptr [rax] inc dword ptr [rax]