r212170 - Added test for capturing VLA types if the captured variable is a function parameter.

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Thu Jul 3 07:49:05 PDT 2014


Alexey Bataev wrote:

>+  // CHECK-3: test4([[INT:i.+]] [[SIZE:.+]], [[INT]]*
>+  // CHECK-3: store [[INT]] [[SIZE]], [[INT]]* [[SIZE_ADDR:.+]],
>+  // CHECK-3: [[REF:%.+]] = getelementptr inbounds
>+  // CHECK-3: store [[INT]]* [[SIZE_ADDR]], [[INT]]** [[REF]]
>+  // CHECK-3: call void @__captured_stmt

This fails on powerpc64-linux with the error:

/home/uweigand/llvm/llvm-head/tools/clang/test/CodeGen/captured-statements.c:70:14:
 error: expected string not found in input
 // CHECK-3: store [[INT]] [[SIZE]], [[INT]]* [[SIZE_ADDR:.+]],
             ^
/home/uweigand/llvm/build/llvm-head/tools/clang/test/CodeGen/Output/captured-statements.c.tmp:151:44:
 note: scanning from here
define void @test4(i32 signext %size, i32* %vla_arr) #0 {
                                           ^
/home/uweigand/llvm/build/llvm-head/tools/clang/test/CodeGen/Output/captured-statements.c.tmp:151:44:
 note: with variable "INT" equal to "i32"
define void @test4(i32 signext %size, i32* %vla_arr) #0 {
                                           ^
/home/uweigand/llvm/build/llvm-head/tools/clang/test/CodeGen/Output/captured-statements.c.tmp:151:44:
 note: with variable "SIZE" equal to "signext %size"
define void @test4(i32 signext %size, i32* %vla_arr) #0 {
                                           ^
/home/uweigand/llvm/build/llvm-head/tools/clang/test/CodeGen/Output/captured-statements.c.tmp:151:44:
 note: with variable "INT" equal to "i32"
define void @test4(i32 signext %size, i32* %vla_arr) #0 {
                                           ^
/home/uweigand/llvm/build/llvm-head/tools/clang/test/CodeGen/Output/captured-statements.c.tmp:163:2:
 note: possible intended match here
 store i32** %vla_arr.addr, i32*** %3, align 8


Maybe once again a problem with the "signext" attributes?


Mit freundlichen Gruessen / Best Regards

Ulrich Weigand

--
  Dr. Ulrich Weigand | Phone: +49-7031/16-3727
  STSM, GNU/Linux compilers and toolchain
  IBM Deutschland Research & Development GmbH
  Vorsitzende des Aufsichtsrats: Martina Koederitz | Geschäftsführung: Dirk
Wittkopp
  Sitz der Gesellschaft: Böblingen | Registergericht: Amtsgericht
Stuttgart, HRB 243294





More information about the cfe-commits mailing list