summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-10-28 19:58:02 +0000
committerHal Finkel <hfinkel@anl.gov>2015-10-28 19:58:02 +0000
commit0f0d2982b7987d0d06658ce34738be9b79303561 (patch)
tree39d1c0f18b4e5da3f63c17861d0b8a9e363ef2f4 /llvm/test/CodeGen
parent1485712648f2d65b55893531b6a8f60c2420e31d (diff)
downloadbcm5719-llvm-0f0d2982b7987d0d06658ce34738be9b79303561.tar.gz
bcm5719-llvm-0f0d2982b7987d0d06658ce34738be9b79303561.zip
[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. llvm-svn: 251548
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/PowerPC/crbit-asm.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/PowerPC/crbit-asm.ll b/llvm/test/CodeGen/PowerPC/crbit-asm.ll
index 36de3435a08..41e65af29a8 100644
--- a/llvm/test/CodeGen/PowerPC/crbit-asm.ll
+++ b/llvm/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" }
OpenPOWER on IntegriCloud