mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
New testcase, should turn into a ushr
llvm-svn: 23658
This commit is contained in:
parent
3151f1ba38
commit
720d11da49
8
test/Regression/CodeGen/PowerPC/div-2.ll
Normal file
8
test/Regression/CodeGen/PowerPC/div-2.ll
Normal file
@ -0,0 +1,8 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep srawi &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep blr
|
||||
|
||||
int %test(int %X) {
|
||||
%Y = and int %X, 15
|
||||
%Z = div int %Y, 4
|
||||
ret int %Z
|
||||
}
|
Loading…
Reference in New Issue
Block a user