blob: c890a07be422dc596834ee3d4e76ab9d0fb8d274 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
; RUN: if as < %s | opt -instcombine | dis | grep cast
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
bool "test1"(int %X) {
%A = cast int %X to uint
%c = setne uint %A, 0 ; Convert to setne int %X, 0
ret bool %c
}
bool "test2"(int %X, int %Y) {
%A = cast int %X to uint
%B = cast int %Y to uint
%c = setne uint %A, %B ; Convert to setne int %X, %Y
ret bool %c
}
|