1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/test/Regression/Transforms/InstCombine/getelementptr_cast.ll
Chris Lattner f3ad63af49 New testcase
llvm-svn: 18272
2004-11-27 17:55:20 +00:00

10 lines
248 B
LLVM

; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'getelementptr.*cast'
%G = external global [3 x sbyte]
implementation
ubyte *%foo(uint %Idx) {
%tmp = getelementptr ubyte* cast ([3 x sbyte]* %G to ubyte*), uint %Idx
ret ubyte* %tmp
}