r239298 - Update test with target flag and amended results

Leny Kholodov lkholodov at accesssoftek.com
Mon Jun 8 04:39:16 PDT 2015


Author: lkholodov
Date: Mon Jun  8 06:39:16 2015
New Revision: 239298

URL: http://llvm.org/viewvc/llvm-project?rev=239298&view=rev
Log:
Update test with target flag and amended results

Modified:
    cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp

Modified: cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp?rev=239298&r1=239297&r2=239298&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/stack-reuse-miscompile.cpp Mon Jun  8 06:39:16 2015
@@ -1,4 +1,4 @@
-// RUN: %clang -S -emit-llvm -O1 -mllvm -disable-llvm-optzns -S %s -o - | FileCheck %s
+// RUN: %clang -S -target armv7l-unknown-linux-gnueabihf -emit-llvm -O1 -mllvm -disable-llvm-optzns -S %s -o - | FileCheck %s
 
 // This test should not to generate llvm.lifetime.start/llvm.lifetime.end for
 // f function because all temporary objects in this function are used for the
@@ -25,15 +25,12 @@ const char * f(S s)
 {
 // CHECK: [[T1:%.*]] = alloca %class.T, align 4
 // CHECK: [[T2:%.*]] = alloca %class.T, align 4
-// CHECK: [[T3:%.*]] = alloca %class.S, align 4
-// CHECK: [[T4:%.*]] = alloca %class.T, align 4
-// CHECK: [[T5:%.*]] = call x86_thiscallcc %class.T* @"\01??0T@@QAE at QBD@Z"
-// CHECK: [[T6:%.*]] = bitcast %class.S* [[T3]] to i8*
-// CHECK: [[T7:%.*]] = bitcast %class.S* %s to i8*
-// CHECK: call void @llvm.memcpy.p0i8.p0i8.i32
-// CHECK: [[T8:%.*]] = call x86_thiscallcc %class.T* @"\01??0T@@QAE at VS@@@Z"
-// CHECK: call x86_thiscallcc void @"\01?concat at T@@QBE?AV1 at ABV1@@Z"
-// CHECK: [[T9:%.*]] = call x86_thiscallcc i8* @"\01?str at T@@QBEPBDXZ"(%class.T* [[T4]])
+// CHECK: [[T3:%.*]] = alloca %class.T, align 4
+// CHECK: [[T4:%.*]] = call %class.T* @_ZN1TC1EPKc(%class.T* [[T1]], i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0))
+// CHECK: [[T5:%.*]] = call %class.T* @_ZN1TC1E1S(%class.T* [[T2]], [2 x i32] %{{.*}})
+// CHECK: call void @_ZNK1T6concatERKS_(%class.T* sret [[T3]], %class.T* [[T1]], %class.T* dereferenceable(16) [[T2]])
+// CHECK: [[T6:%.*]] = call i8* @_ZNK1T3strEv(%class.T* [[T3]])
+// CHECK: ret i8* [[T6]]
 
   return T("[").concat(T(s)).str();
 }





More information about the cfe-commits mailing list