mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-16 16:37:42 +00:00
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12761 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
58fe7695b9
commit
ef09aab9ce
10
test/Transforms/InstCombine/getelementptr_index.ll
Normal file
10
test/Transforms/InstCombine/getelementptr_index.ll
Normal file
@ -0,0 +1,10 @@
|
||||
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep cast
|
||||
|
||||
target endian = little
|
||||
target pointersize = 32
|
||||
|
||||
int* %test(int* %X, long %Idx) {
|
||||
; Should insert a cast to int on this target
|
||||
%R = getelementptr int* %X, long %Idx
|
||||
ret int* %R
|
||||
}
|
Loading…
Reference in New Issue
Block a user