mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 20:26:31 +00:00
e60bc4e8b8
cntlz is the old POWER mnemonic. cntlzw is the PowerPC mnemonic. This change fixes an issue when -no-integrated-as: The opcode cntlz is unrecognized by gas Alias the POWER mnemonic cntlz[.] to the PowerPC mnemonic cntlzw[.] This is done for because the POWER cntlz mnemonic has be used by LLVM for a very long time. We need to make sure that assembly programs that are using the cntlz[.] do not break with this change. Change PowerPC tests to reflect the insn change from cntlz to cntlzw. Add assembly test to verify cntlz[.] is encoded correctly. Patch by Tom Rix! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251489 91177308-0d34-0410-b5e6-96231b3b80d8
10 lines
261 B
LLVM
10 lines
261 B
LLVM
; RUN: llc < %s -march=ppc32 | grep cntlzw
|
|
; RUN: llc < %s -march=ppc32 | not grep xori
|
|
; RUN: llc < %s -march=ppc32 | not grep "li "
|
|
; RUN: llc < %s -march=ppc32 | not grep "mr "
|
|
|
|
define i1 @test(i64 %x) {
|
|
%tmp = icmp ult i64 %x, 4294967296
|
|
ret i1 %tmp
|
|
}
|