Modify testcases for new LLVM const syntax

llvm-svn: 698
This commit is contained in:
Chris Lattner 2001-10-03 01:48:04 +00:00
parent da55810666
commit 02a9c0a081
5 changed files with 21 additions and 21 deletions

View File

@ -1,7 +1,7 @@
implementation implementation
void "test function"(int %i0, int %j0) void "test function"(int %i0, int %j0)
%x = int 1 %x = const int 1
begin begin
Startup: ; Basic block #0 Startup: ; Basic block #0
%i1 = add int %i0, 1 %i1 = add int %i0, 1
@ -28,8 +28,8 @@ end
; format looks anyways (except for negative vs positive offsets)... ; format looks anyways (except for negative vs positive offsets)...
; ;
void "void"(int, int) ; Def %0, %1 void "void"(int, int) ; Def %0, %1
int 0 ; Def 2 const int 0 ; Def 2
int -4 ; Def 3 const int -4 ; Def 3
begin begin
add int %0, %1 ; Def 4 add int %0, %1 ; Def 4
sub int %4, %3 ; Def 5 sub int %4, %3 ; Def 5
@ -44,8 +44,8 @@ end
; This function always returns zero ; This function always returns zero
int "zarro"() int "zarro"()
uint 4000000000 ; Def 0 - uint plane const uint 4000000000 ; Def 0 - uint plane
int 0 ; Def 0 - int plane const int 0 ; Def 0 - int plane
begin begin
Startup: Startup:
ret int %0 ret int %0

View File

@ -7,8 +7,8 @@ implementation
; This function always returns zero ; This function always returns zero
int "zarro"(int %Func) int "zarro"(int %Func)
%q = uint 4000000000 %q = const uint 4000000000
%p = int 0 %p = const int 0
begin begin
Startup: Startup:
add int %p, 10 add int %p, 10

View File

@ -1,18 +1,18 @@
long 12 const long 12
implementation implementation
ulong "const removal"() ulong "const removal"()
long 12345 const long 12345
%q = uint 4000000000 ; Def 0 - uint plane %q = const uint 4000000000 ; Def %q - uint plane
ulong 123 ; Def 0 - ulong plane const ulong 123 ; Def 0 - ulong plane
ulong 4000000000000 ; Def 1 - ulong plane const ulong 4000000000000 ; Def 1 - ulong plane
begin begin
ret ulong %1 ret ulong %1
end end
void "dce #1"() void "dce #1"()
int 0 const int 0
begin begin
ret void ret void
@ -31,9 +31,9 @@ TestName:
end end
void "const prop #1"() void "const prop #1"()
%x = int 0 ; Def %x - int plane %x = const int 0 ; Def %x - int plane
int 0 ; Def 0 - int plane const int 0 ; Def 0 - int plane
bool false const bool false
begin begin
Startup: Startup:
%x = seteq int %0, %x %x = seteq int %0, %x

View File

@ -1,9 +1,9 @@
implementation implementation
int "test function"(int %i0, int %j0) int "test function"(int %i0, int %j0)
%i1 = int 1 %i1 = const int 1
%j1 = int 1 %j1 = const int 1
%k1 = int 0 %k1 = const int 0
begin begin
BB1: BB1:
br label %BB2 br label %BB2

View File

@ -42,8 +42,8 @@ end
; 2. cannot be folded because result of comparison is used twice ; 2. cannot be folded because result of comparison is used twice
; ;
void "testbool"(int, int) ; Def %0, %1 void "testbool"(int, int) ; Def %0, %1
int 0 ; Def 2 const int 0 ; Def 2
int -4 ; Def 3 const int -4 ; Def 3
begin begin
add int %0, %1 ; Def 4 add int %0, %1 ; Def 4
sub int %4, %3 ; Def 5 sub int %4, %3 ; Def 5