mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
Added test cases to guarantee use of ORC and ANDC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22772 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
847c3a976b
commit
4a17addadb
@ -1,4 +1,6 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep eqv | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep andc | wc -l | grep 2 &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep orc | wc -l | grep 2
|
||||
|
||||
int %test1(int %X, int %Y) {
|
||||
%A = xor int %X, %Y
|
||||
@ -11,3 +13,27 @@ int %test2(int %X, int %Y) {
|
||||
%B = xor int %A, -1
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int %test3(int %X, int %Y) {
|
||||
%A = xor int %Y, -1
|
||||
%B = and int %X, %A
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int %test4(int %X, int %Y) {
|
||||
%A = xor int %Y, -1
|
||||
%B = or int %X, %A
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int %test5(int %X, int %Y) {
|
||||
%A = xor int %X, -1
|
||||
%B = and int %A, %Y
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int %test6(int %X, int %Y) {
|
||||
%A = xor int %X, -1
|
||||
%B = or int %A, %Y
|
||||
ret int %B
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user