mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
More testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4401c9cabe
commit
68f6b8cba8
@ -15,3 +15,18 @@ bool %test2(short* %P, int %I) {
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
int %test3(int* %P, int %A, int %B) {
|
||||
%tmp.4 = getelementptr int* %P, int %A ; <int*> [#uses=1]
|
||||
%tmp.9 = getelementptr int* %P, int %B ; <int*> [#uses=1]
|
||||
%tmp.10 = seteq int* %tmp.4, %tmp.9 ; <bool> [#uses=1]
|
||||
%tmp.11 = cast bool %tmp.10 to int ; <int> [#uses=1]
|
||||
ret int %tmp.11
|
||||
}
|
||||
|
||||
int %test4(int* %P, int %A, int %B) {
|
||||
%tmp.4 = getelementptr int* %P, int %A ; <int*> [#uses=1]
|
||||
%tmp.6 = seteq int* %tmp.4, %P ; <bool> [#uses=1]
|
||||
%tmp.7 = cast bool %tmp.6 to int ; <int> [#uses=1]
|
||||
ret int %tmp.7
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user