r343044 - [clang-check-codegen][cfstring] Accept either @ or % for progbits to make ppc64be bots happy.

Kristina Brooks via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 25 16:17:10 PDT 2018


Author: kristina
Date: Tue Sep 25 16:17:09 2018
New Revision: 343044

URL: http://llvm.org/viewvc/llvm-project?rev=343044&view=rev
Log:
[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", at 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.
 

Modified:
    cfe/trunk/test/CodeGen/cfstring3.c

Modified: cfe/trunk/test/CodeGen/cfstring3.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/cfstring3.c?rev=343044&r1=343043&r2=343044&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/cfstring3.c (original)
+++ cfe/trunk/test/CodeGen/cfstring3.c Tue Sep 25 16:17:09 2018
@@ -41,5 +41,5 @@ const CFStringRef two = (CFStringRef)__b
 // 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", at progbits
+// CHECK-ASM-ELF: .section cfstring,"aw",{{[@%]}}progbits
 // CHECK-ASM-MACHO: .section __DATA,__cfstring




More information about the cfe-commits mailing list