mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
91f52b0e31
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! llvm-svn: 251489
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
|
|
}
|