1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00

New testcase

llvm-svn: 16841
This commit is contained in:
Chris Lattner 2004-10-08 17:29:47 +00:00
parent 1ac1e54bf9
commit feb9fb9929

View File

@ -0,0 +1,19 @@
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
%G = internal global { int, float, {double} } { int 1, float 1.0, {double} {double 17.27} }
void %onlystore() {
store int 123, int* getelementptr ({ int, float, {double} }* %G, int 0, uint 0)
ret void
}
float %storeinit() {
store float 1.0, float* getelementptr ({ int, float, {double} }* %G, int 0, uint 1)
%X = load float* getelementptr ({ int, float, {double} }* %G, int 0, uint 1)
ret float %X
}
double %constantize() {
%X = load double* getelementptr ({ int, float, {double} }* %G, int 0, uint 2, uint 0)
ret double %X
}