[llvm] r251548 - [PowerPC] Fix CodeGen/PowerPC/crbit-asm.ll test for -O1

Hal Finkel via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 28 12:58:02 PDT 2015


Author: hfinkel
Date: Wed Oct 28 14:58:02 2015
New Revision: 251548

URL: http://llvm.org/viewvc/llvm-project?rev=251548&view=rev
Log:
[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.

Modified:
    llvm/trunk/test/CodeGen/PowerPC/crbit-asm.ll

Modified: llvm/trunk/test/CodeGen/PowerPC/crbit-asm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/crbit-asm.ll?rev=251548&r1=251547&r2=251548&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/crbit-asm.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/crbit-asm.ll Wed Oct 28 14:58:02 2015
@@ -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" }
 




More information about the llvm-commits mailing list