mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-30 23:42:52 +01:00
f3ad63af49
llvm-svn: 18272
10 lines
248 B
LLVM
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
|
|
}
|