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

Bataev, Alexey a.bataev at hotmail.com
Thu Jul 3 22:32:20 PDT 2014


Ulrich,
Fixed. Thanks for the report!

Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team

03.07.2014 18:49, Ulrich Weigand пишет:
> 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