Fix tests for ARM targets

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

llvm-svn: 312181
This commit is contained in:
Douglas Yung 2017-08-30 22:30:08 +00:00
parent 79d53febcf
commit aa25e5bab2
3 changed files with 3 additions and 3 deletions

View 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() {
}

View 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() {
}

View 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() {
}