]> granicus.if.org Git - clang/commitdiff
Fix tests for ARM targets
authorDouglas Yung <douglas.yung@sony.com>
Wed, 30 Aug 2017 22:30:08 +0000 (22:30 +0000)
committerDouglas Yung <douglas.yung@sony.com>
Wed, 30 Aug 2017 22:30:08 +0000 (22:30 +0000)
Tests fail on ARM targets due to ABI name between define and void. Added reg ex to skip.

Patch by Glenn Howe (and expanded on by Douglas Yung)!

Differential Revision: https://reviews.llvm.org/D33410

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

test/CodeGen/profile-sample-accurate.c
test/CodeGen/thinlto-emit-llvm.c
test/Integration/thinlto_profile_sample_accurate.c

index cf628d55cf5c2ba0100c1f8195f098e41e9b45be..9dd6afd24d7eab6bec7ca0b8ff4c7c36f475c82e 100644 (file)
@@ -1,7 +1,7 @@
 // Test to ensure -emit-llvm profile-sample-accurate is honored by clang.
 // RUN: %clang -S -emit-llvm %s -fprofile-sample-accurate -o - | FileCheck %s
 
-// CHECK: define void @foo()
+// CHECK: define {{.*}} void @foo()
 // CHECK: attributes {{.*}} "profile-sample-accurate"
 void foo() {
 }
index f611162d1999d4e2a069b05f085d321caff10dde..d89961d5f5658a65d307bf20cf7b93700ac0b302 100644 (file)
@@ -5,6 +5,6 @@
 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm-bc -o - | llvm-dis -o - | FileCheck %s
 
-// CHECK: define void @foo()
+// CHECK: define {{.*}} void @foo()
 void foo() {
 }
index d7966c215cb93bc428be12ad092066d2225e0662..d209e24d560bd035cd9b684fab307622bf90d565 100644 (file)
@@ -3,7 +3,7 @@
 // RUN: llvm-lto -thinlto -o %t %t.o
 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
 
-// CHECK: define void @foo()
+// CHECK: define {{.*}} void @foo()
 // CHECK: attributes {{.*}} "profile-sample-accurate"
 void foo() {
 }