Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
fp2-dev
/
platform
/
external
/
llvm
/
ba4733d901b1c2b994f66707657342b8c81c92bc
/
.
/
test
/
CodeGen
/
PowerPC
/
and-imm.ll
blob: 09cc1a27a4ad4db61b9987300355e87f138471ee [
file
] [
log
] [
blame
]
; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'ori\|lis'
int
%test
(
int
%X
)
{
%Y
=
and
int
%X
,
32769
; andi. r3, r3, 32769
ret
int
%Y
}
int
%test2
(
int
%X
)
{
%Y
=
and
int
%X
,
-
2147418112
; andis. r3, r3, 32769
ret
int
%Y
}