r206467 - Fix Profile:cxx-lambda.cpp test for targets that do not generate zeroext

Keith Walker kwalker at arm.com
Thu Apr 17 06:04:53 PDT 2014


Author: kwalker
Date: Thu Apr 17 08:04:53 2014
New Revision: 206467

URL: http://llvm.org/viewvc/llvm-project?rev=206467&view=rev
Log:
Fix Profile:cxx-lambda.cpp test for targets that do not generate zeroext

Change an expected match to allow for the fact that some targets
may not generated the zeroext operation.

Modified:
    cfe/trunk/test/Profile/cxx-lambda.cpp

Modified: cfe/trunk/test/Profile/cxx-lambda.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Profile/cxx-lambda.cpp?rev=206467&r1=206466&r2=206467&view=diff
==============================================================================
--- cfe/trunk/test/Profile/cxx-lambda.cpp (original)
+++ cfe/trunk/test/Profile/cxx-lambda.cpp Thu Apr 17 08:04:53 2014
@@ -18,8 +18,8 @@
 void lambdas() {
   int i = 1;
 
-  // LMBGEN-LABEL: define internal zeroext i1 @"_ZZ7lambdasvENK3$_0clEi"(
-  // LMBUSE-LABEL: define internal zeroext i1 @"_ZZ7lambdasvENK3$_0clEi"(
+  // LMBGEN-LABEL: define internal{{( zeroext)?}} i1 @"_ZZ7lambdasvENK3$_0clEi"(
+  // LMBUSE-LABEL: define internal{{( zeroext)?}} i1 @"_ZZ7lambdasvENK3$_0clEi"(
   // LMBGEN: store {{.*}} @[[LFC]], i64 0, i64 0
   auto f = [&i](int k) {
     // LMBGEN: store {{.*}} @[[LFC]], i64 0, i64 1





More information about the cfe-commits mailing list