mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Move to test/programs/LLvmsource
llvm-svn: 7037
This commit is contained in:
parent
c5f892c867
commit
6fa0bd2ce5
@ -1,25 +0,0 @@
|
|||||||
; Our back-end is generating set-unsigned (setuw) for -2, when it
|
|
||||||
; should be using setsw.
|
|
||||||
;
|
|
||||||
; RUN: as %s -f -o Output/%s.bc
|
|
||||||
; RUN: llc -f Output/%s.bc
|
|
||||||
; RUN: /usr/ccs/bin/as Output/%s.s -xarch=v9
|
|
||||||
; RUN: /opt/SUNWspro60/bin/cc -xarch=v9 Output/%s.o -o Output/%s.exe
|
|
||||||
; RUN: Output/%s.exe
|
|
||||||
;
|
|
||||||
|
|
||||||
implementation
|
|
||||||
declare void "abort"()
|
|
||||||
|
|
||||||
int "main"(int %argc, sbyte * * %argv)
|
|
||||||
begin
|
|
||||||
%T1 = cast int 2 to uint
|
|
||||||
%tmp = add uint %T1, 4294967294 ; == -2
|
|
||||||
%cond = seteq uint %tmp, 0
|
|
||||||
br bool %cond, label %Ok, label %Fail
|
|
||||||
Ok:
|
|
||||||
ret int 0
|
|
||||||
Fail:
|
|
||||||
call void %abort()
|
|
||||||
ret int 1
|
|
||||||
end
|
|
Loading…
Reference in New Issue
Block a user