mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Add a new test16 and fix some other tests that were not properly written
llvm-svn: 13735
This commit is contained in:
parent
58ec281e5f
commit
d905489f64
@ -88,14 +88,18 @@ ubyte *%test13(long %A) {
|
||||
}
|
||||
|
||||
bool %test14(sbyte %A) {
|
||||
%B = cast sbyte %A to ubyte
|
||||
%X = setlt ubyte %B, 128 ; setge %A, 0
|
||||
%c = cast sbyte %A to ubyte
|
||||
%X = setlt ubyte %c, 128 ; setge %A, 0
|
||||
ret bool %X
|
||||
}
|
||||
|
||||
bool %test15(ubyte %A) {
|
||||
%B = cast ubyte %A to sbyte
|
||||
%X = setlt sbyte %B, 0 ; setgt %A, 127
|
||||
%c = cast ubyte %A to sbyte
|
||||
%X = setlt sbyte %c, 0 ; setgt %A, 127
|
||||
ret bool %X
|
||||
}
|
||||
|
||||
bool %test16(int* %P) {
|
||||
%c = cast int* %P to bool ;; setne P, null
|
||||
ret bool %c
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user