]> granicus.if.org Git - clang/commitdiff
[clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be...
authorKristina Brooks <kristina@nym.hush.com>
Tue, 25 Sep 2018 23:17:09 +0000 (23:17 +0000)
committerKristina Brooks <kristina@nym.hush.com>
Tue, 25 Sep 2018 23:17:09 +0000 (23:17 +0000)
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
  <stdin>: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

test/CodeGen/cfstring3.c

index 48714f3d12342cee1bfc7a5ad1a7991ebb698c97..839ef656935be676412b154d6a0f0daf53bce051 100644 (file)
@@ -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