forked from OSchip/llvm-project
Added flag to disable isel instruction on PPC target. Using regular branches instead of isel is more efficient in some cases.
llvm-svn: 234509
This commit is contained in:
parent
0daf55703d
commit
5a41f92f69
|
@ -1274,6 +1274,8 @@ def mfprnd : Flag<["-"], "mfprnd">, Group<m_ppc_Features_Group>;
|
|||
def mno_fprnd : Flag<["-"], "mno-fprnd">, Group<m_ppc_Features_Group>;
|
||||
def mcmpb : Flag<["-"], "mcmpb">, Group<m_ppc_Features_Group>;
|
||||
def mno_cmpb : Flag<["-"], "mno-cmpb">, Group<m_ppc_Features_Group>;
|
||||
def misel : Flag<["-"], "misel">, Group<m_ppc_Features_Group>;
|
||||
def mno_isel : Flag<["-"], "mno-isel">, Group<m_ppc_Features_Group>;
|
||||
def mmfcrf : Flag<["-"], "mmfcrf">, Group<m_ppc_Features_Group>;
|
||||
def mno_mfcrf : Flag<["-"], "mno-mfcrf">, Group<m_ppc_Features_Group>;
|
||||
def mpopcntd : Flag<["-"], "mpopcntd">, Group<m_ppc_Features_Group>;
|
||||
|
|
|
@ -77,6 +77,12 @@
|
|||
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-mfcrf -mmfcrf -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-MFCRF %s
|
||||
// CHECK-MFCRF: "-target-feature" "+mfocrf"
|
||||
|
||||
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-isel -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOISEL %s
|
||||
// CHECK-NOISEL: "-target-feature" "-isel"
|
||||
|
||||
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-isel -misel -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-ISEL %s
|
||||
// CHECK-ISEL: "-target-feature" "+isel"
|
||||
|
||||
// RUN: %clang -target powerpc64-unknown-linux-gnu %s -mno-popcntd -### -o %t.o 2>&1 | FileCheck -check-prefix=CHECK-NOPOPCNTD %s
|
||||
// CHECK-NOPOPCNTD: "-target-feature" "-popcntd"
|
||||
|
||||
|
|
Loading…
Reference in New Issue