mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-26 06:22:56 +02:00
4e2def1840
TableGen had been nicely generating code to print a number of instructions using shorter aliases (and PowerPC has plenty of short mnemonics), but we were not calling it. For some of the aliases we support in the parser, TableGen can't infer the "inverse" alias relationship, so there is still more to do. Thus, after some hours of updating test cases... llvm-svn: 235616
13 lines
348 B
LLVM
13 lines
348 B
LLVM
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | FileCheck %s
|
|
|
|
define i32 @eq0(i32 %a) {
|
|
%tmp.1 = icmp eq i32 %a, 0 ; <i1> [#uses=1]
|
|
%tmp.2 = zext i1 %tmp.1 to i32 ; <i32> [#uses=1]
|
|
ret i32 %tmp.2
|
|
|
|
; CHECK: cntlz [[REG:r[0-9]+]], r3
|
|
; CHECK: rlwinm r3, [[REG]], 27, 31, 31
|
|
; CHECK: blr
|
|
}
|
|
|