diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-10-28 19:58:02 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-10-28 19:58:02 +0000 |
commit | 0f0d2982b7987d0d06658ce34738be9b79303561 (patch) | |
tree | 39d1c0f18b4e5da3f63c17861d0b8a9e363ef2f4 /llvm/test/CodeGen | |
parent | 1485712648f2d65b55893531b6a8f60c2420e31d (diff) | |
download | bcm5719-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.ll | 3 |
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" } |