From: Hal Finkel Date: Wed, 28 Oct 2015 19:58:02 +0000 (+0000) Subject: [PowerPC] Fix CodeGen/PowerPC/crbit-asm.ll test for -O1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca04c7f8e3947f9d7edf5087d90a9438c4c11d8d;p=oota-llvm.git [PowerPC] Fix CodeGen/PowerPC/crbit-asm.ll test for -O1 Add the crbits processor feature so that the test can be run at -O1, etc. regardless of the default crbits setting. Fixes PR23778. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251548 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/PowerPC/crbit-asm.ll b/test/CodeGen/PowerPC/crbit-asm.ll index 36de3435a08..41e65af29a8 100644 --- a/test/CodeGen/PowerPC/crbit-asm.ll +++ b/test/CodeGen/PowerPC/crbit-asm.ll @@ -1,4 +1,5 @@ ; RUN: llc -mcpu=pwr7 < %s | FileCheck %s +; RUN: llc -O1 -mcpu=pwr7 < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" @@ -55,5 +56,5 @@ entry: ; CHECK: blr } -attributes #0 = { nounwind } +attributes #0 = { nounwind "target-features"="+crbits" }