[PowerPC] Fix CodeGen/PowerPC/crbit-asm.ll test for -O1
authorHal Finkel <hfinkel@anl.gov>
Wed, 28 Oct 2015 19:58:02 +0000 (19:58 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 28 Oct 2015 19:58:02 +0000 (19:58 +0000)
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

test/CodeGen/PowerPC/crbit-asm.ll

index 36de3435a0816dbbc578eadb480db37f2430ff91..41e65af29a8a1ce1d5b1e22c5322367c5ca40fc3 100644 (file)
@@ -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" }