mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-27 22:12:47 +01:00
b08ece4571
llvm-svn: 4563
21 lines
561 B
LLVM
21 lines
561 B
LLVM
; This file contains a list of situations where node folding should happen...
|
|
|
|
implementation
|
|
|
|
void %test1({int, int} * %X) {
|
|
getelementptr {int, int} * %X, long 0
|
|
%Y = cast {int, int} * %X to sbyte*
|
|
%Z = getelementptr sbyte* %Y, long 7
|
|
store sbyte 6, sbyte *%Z
|
|
ret void
|
|
}
|
|
|
|
void %test2({int, int} * %X) {
|
|
getelementptr {int, int} * %X, long 0
|
|
%Y = cast {int, int} * %X to {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte} *
|
|
%Z = getelementptr {sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte,sbyte}* %Y, long 0, ubyte 7
|
|
store sbyte 6, sbyte *%Z
|
|
ret void
|
|
}
|
|
|