mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
Modernize testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5726 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3d87b42bf9
commit
a66e2fa195
@ -8,27 +8,27 @@
|
||||
|
||||
implementation
|
||||
|
||||
int "test1"(int %A) {
|
||||
int %test1(int %A) {
|
||||
%B = shl int %A, ubyte 0
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int "test2"(ubyte %A) {
|
||||
int %test2(ubyte %A) {
|
||||
%B = shl int 0, ubyte %A
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int "test3"(int %A) {
|
||||
int %test3(int %A) {
|
||||
%B = shr int %A, ubyte 0
|
||||
ret int %B
|
||||
}
|
||||
|
||||
int "test4"(ubyte %A) {
|
||||
int %test4(ubyte %A) {
|
||||
%B = shr int 0, ubyte %A
|
||||
ret int %B
|
||||
}
|
||||
|
||||
uint "test5"(uint %A) {
|
||||
uint %test5(uint %A) {
|
||||
%B = shr uint %A, ubyte 32 ;; shift all bits out
|
||||
ret uint %B
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user