]> granicus.if.org Git - clang/commitdiff
Support matching signext attribute in vla-lambda-capturing test to appease clang...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Sat, 22 Nov 2014 16:08:56 +0000 (16:08 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Sat, 22 Nov 2014 16:08:56 +0000 (16:08 +0000)
The Mips target adds the signext attribute to signed 32-bit integers in order
to support the N32/N64 correctly. Integers must be promoted to 64-bit bit on
these ABI's.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222617 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenCXX/vla-lambda-capturing.cpp

index 4ad183d8cc12f862e619509944c5d89cdde2b301..e8fd0a1fd3ab80a21dd3822a31615521a93db561 100644 (file)
@@ -70,11 +70,11 @@ void b(intptr_t n, T arg) {
 
 // CHECK-LABEL: @main
 int main() {
-  // CHECK:       call void [[G]]([[INTPTR_T]] 1)
+  // CHECK:       call void [[G]]([[INTPTR_T]] [[INTPTR_T_ATTR:(signext )?]]1)
   g((intptr_t)1);
-  // CHECK:       call void [[F_INT:@.+]]([[INTPTR_T]] 1, [[INTPTR_T]] 2)
+  // CHECK:       call void [[F_INT:@.+]]([[INTPTR_T]] [[INTPTR_T_ATTR]]1, [[INTPTR_T]] [[INTPTR_T_ATTR]]2)
   f((intptr_t)1, (intptr_t)2);
-  // CHECK:       call void [[B_INT:@.+]]([[INTPTR_T]] 12, [[INTPTR_T]] 13)
+  // CHECK:       call void [[B_INT:@.+]]([[INTPTR_T]] [[INTPTR_T_ATTR]]12, [[INTPTR_T]] [[INTPTR_T_ATTR]]13)
   b((intptr_t)12, (intptr_t)13);
   // CHECK:       ret i32 0
   return 0;