mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19539 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a44f4aeca7
commit
195e9176af
17
test/Transforms/InstCombine/getelementptr-setcc.ll
Normal file
17
test/Transforms/InstCombine/getelementptr-setcc.ll
Normal file
@ -0,0 +1,17 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep getelementptr
|
||||
|
||||
bool %test1(short* %P, int %I, int %J) {
|
||||
%X = getelementptr short* %P, int %I
|
||||
%Y = getelementptr short* %P, int %J
|
||||
|
||||
%C = setlt short* %X, %Y
|
||||
ret bool %C
|
||||
}
|
||||
|
||||
bool %test2(short* %P, int %I) {
|
||||
%X = getelementptr short* %P, int %I
|
||||
|
||||
%C = setlt short* %X, %P
|
||||
ret bool %C
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user