forked from OSchip/llvm-project
parent
9e5eb46362
commit
31dbda2a1c
|
@ -1,5 +1,7 @@
|
|||
%AConst = constant int 123
|
||||
|
||||
%Domain = type { sbyte*, int, int*, int, int, int*, %Domain* }
|
||||
|
||||
implementation
|
||||
|
||||
; Test setting values of different constants in registers.
|
||||
|
@ -193,3 +195,13 @@ begin
|
|||
|
||||
ret void
|
||||
end
|
||||
|
||||
|
||||
; Test case for folding getelementptr into a load/store
|
||||
;
|
||||
int "checkFoldGEP"(%Domain* %D, long %idx)
|
||||
begin
|
||||
%reg841 = getelementptr %Domain* %D, long 0, ubyte 2, long %idx
|
||||
%reg820 = load int* %reg841
|
||||
ret int %reg820
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue