repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added the ability to xfail based on llvmgcc version
[llvm-complete.git]
/
test
/
Transforms
/
InstCombine
/
getelementptr_cast.ll
blob
ece73f77100815aefbca960cdf2d0c8efc9f7c0b
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'getelementptr.*cast'
2
%G = external global [3 x sbyte]
3
4
implementation
5
6
ubyte *%foo(uint %Idx) {
7
%tmp = getelementptr ubyte* cast ([3 x sbyte]* %G to ubyte*), uint %Idx
8
ret ubyte* %tmp
9
}