mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 07:39:31 +00:00
Making main() return 0 so that we know it ran successfully when it exits.
llvm-svn: 4991
This commit is contained in:
parent
a60d5f394d
commit
02f2676eac
@ -1,5 +1,5 @@
|
||||
|
||||
void %main() {
|
||||
int %main() {
|
||||
%A = add sbyte 0, 12
|
||||
%B = sub sbyte %A, %A
|
||||
%C = mul sbyte %B, %B
|
||||
@ -24,5 +24,5 @@ void %main() {
|
||||
%F = div uint 5, 6
|
||||
%G = rem uint 6, 5
|
||||
|
||||
ret void
|
||||
ret int 0
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
; test shifts
|
||||
void %main() {
|
||||
int %main() {
|
||||
%i = add int 10, 0
|
||||
%u = add uint 20, 0
|
||||
%shamt = add ubyte 0, 0
|
||||
@ -23,5 +23,5 @@ void %main() {
|
||||
%temp07 = shr int %i, ubyte 6
|
||||
; 1 1 1
|
||||
%temp08 = shr uint %u, ubyte 7
|
||||
ret void
|
||||
ret int 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user