From: Kristina Brooks Date: Tue, 25 Sep 2018 23:17:09 +0000 (+0000) Subject: [clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77c4d242ac9cf4d0264dbe5336c09ee1a8eede48;p=clang [clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be bots happy. PPC64BE bots use % instead of @ for directives like progbits. Since CFString tests also check asm output, they fail on the following: cfstring3.c:44:19: error: CHECK-ASM-ELF: expected string not found in input // CHECK-ASM-ELF: .section cfstring,"aw",@progbits :30:2: note: possible intended match here .section cfstring,"aw",%progbits Updating that check with a {{[@%]}}progbits regex to make those bots happy. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343044 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/cfstring3.c b/test/CodeGen/cfstring3.c index 48714f3d12..839ef65693 100644 --- a/test/CodeGen/cfstring3.c +++ b/test/CodeGen/cfstring3.c @@ -41,5 +41,5 @@ const CFStringRef two = (CFStringRef)__builtin___CFStringMakeConstantString("\xe // CHECK-MACHO64: @_unnamed_cfstring_.2 = private global %struct.__NSConstantString_tag { i32* getelementptr inbounds ([0 x i32], [0 x i32]* @__CFConstantStringClassReference, i32 0, i32 0), i32 2000, i8* bitcast ([7 x i16]* @.str.1 to i8*), i64 6 }, section "__DATA,__cfstring", align 8 // CHECK-ASM-COFF: .section cfstring,"dw" -// CHECK-ASM-ELF: .section cfstring,"aw",@progbits +// CHECK-ASM-ELF: .section cfstring,"aw",{{[@%]}}progbits // CHECK-ASM-MACHO: .section __DATA,__cfstring