mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Modify testcases for new LLVM const syntax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@698 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b00c582b6d
commit
fe5e584cd9
@ -1,7 +1,7 @@
|
||||
implementation
|
||||
|
||||
void "test function"(int %i0, int %j0)
|
||||
%x = int 1
|
||||
%x = const int 1
|
||||
begin
|
||||
Startup: ; Basic block #0
|
||||
%i1 = add int %i0, 1
|
||||
@ -28,8 +28,8 @@ end
|
||||
; format looks anyways (except for negative vs positive offsets)...
|
||||
;
|
||||
void "void"(int, int) ; Def %0, %1
|
||||
int 0 ; Def 2
|
||||
int -4 ; Def 3
|
||||
const int 0 ; Def 2
|
||||
const int -4 ; Def 3
|
||||
begin
|
||||
add int %0, %1 ; Def 4
|
||||
sub int %4, %3 ; Def 5
|
||||
@ -44,8 +44,8 @@ end
|
||||
|
||||
; This function always returns zero
|
||||
int "zarro"()
|
||||
uint 4000000000 ; Def 0 - uint plane
|
||||
int 0 ; Def 0 - int plane
|
||||
const uint 4000000000 ; Def 0 - uint plane
|
||||
const int 0 ; Def 0 - int plane
|
||||
begin
|
||||
Startup:
|
||||
ret int %0
|
||||
|
@ -7,8 +7,8 @@ implementation
|
||||
|
||||
; This function always returns zero
|
||||
int "zarro"(int %Func)
|
||||
%q = uint 4000000000
|
||||
%p = int 0
|
||||
%q = const uint 4000000000
|
||||
%p = const int 0
|
||||
begin
|
||||
Startup:
|
||||
add int %p, 10
|
||||
|
@ -1,18 +1,18 @@
|
||||
long 12
|
||||
const long 12
|
||||
|
||||
implementation
|
||||
|
||||
ulong "const removal"()
|
||||
long 12345
|
||||
%q = uint 4000000000 ; Def 0 - uint plane
|
||||
ulong 123 ; Def 0 - ulong plane
|
||||
ulong 4000000000000 ; Def 1 - ulong plane
|
||||
const long 12345
|
||||
%q = const uint 4000000000 ; Def %q - uint plane
|
||||
const ulong 123 ; Def 0 - ulong plane
|
||||
const ulong 4000000000000 ; Def 1 - ulong plane
|
||||
begin
|
||||
ret ulong %1
|
||||
end
|
||||
|
||||
void "dce #1"()
|
||||
int 0
|
||||
const int 0
|
||||
begin
|
||||
ret void
|
||||
|
||||
@ -31,9 +31,9 @@ TestName:
|
||||
end
|
||||
|
||||
void "const prop #1"()
|
||||
%x = int 0 ; Def %x - int plane
|
||||
int 0 ; Def 0 - int plane
|
||||
bool false
|
||||
%x = const int 0 ; Def %x - int plane
|
||||
const int 0 ; Def 0 - int plane
|
||||
const bool false
|
||||
begin
|
||||
Startup:
|
||||
%x = seteq int %0, %x
|
||||
|
@ -1,9 +1,9 @@
|
||||
implementation
|
||||
|
||||
int "test function"(int %i0, int %j0)
|
||||
%i1 = int 1
|
||||
%j1 = int 1
|
||||
%k1 = int 0
|
||||
%i1 = const int 1
|
||||
%j1 = const int 1
|
||||
%k1 = const int 0
|
||||
begin
|
||||
BB1:
|
||||
br label %BB2
|
||||
|
@ -42,8 +42,8 @@ end
|
||||
; 2. cannot be folded because result of comparison is used twice
|
||||
;
|
||||
void "testbool"(int, int) ; Def %0, %1
|
||||
int 0 ; Def 2
|
||||
int -4 ; Def 3
|
||||
const int 0 ; Def 2
|
||||
const int -4 ; Def 3
|
||||
begin
|
||||
add int %0, %1 ; Def 4
|
||||
sub int %4, %3 ; Def 5
|
||||
|
Loading…
Reference in New Issue
Block a user