mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-06 19:09:08 +00:00
Update test to use long instead of uint getelementptr subscripts
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4280 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c954161ea7
commit
6648645559
@ -10,14 +10,14 @@
|
||||
; Array test: Test that operations on one local array do not invalidate
|
||||
; operations on another array. Important for scientific codes.
|
||||
;
|
||||
int %different_array_test(uint %A, uint %B) {
|
||||
int %different_array_test(long %A, long %B) {
|
||||
%Array1 = alloca int, uint 100
|
||||
%Array2 = alloca int, uint 200
|
||||
|
||||
%pointer = getelementptr int* %Array1, uint %A
|
||||
%pointer = getelementptr int* %Array1, long %A
|
||||
%val = load int* %pointer
|
||||
|
||||
%pointer2 = getelementptr int* %Array2, uint %B
|
||||
%pointer2 = getelementptr int* %Array2, long %B
|
||||
store int 7, int* %pointer2
|
||||
|
||||
%REMOVE = load int* %pointer ; redundant with above load
|
||||
@ -30,8 +30,8 @@ int %different_array_test(uint %A, uint %B) {
|
||||
;
|
||||
int %constant_array_index_test() {
|
||||
%Array = alloca int, uint 100
|
||||
%P1 = getelementptr int* %Array, uint 7
|
||||
%P2 = getelementptr int* %Array, uint 6
|
||||
%P1 = getelementptr int* %Array, long 7
|
||||
%P2 = getelementptr int* %Array, long 6
|
||||
|
||||
%A = load int* %P1
|
||||
store int 1, int* %P2 ; Should not invalidate load
|
||||
|
@ -10,14 +10,14 @@
|
||||
; Array test: Test that operations on one local array do not invalidate
|
||||
; operations on another array. Important for scientific codes.
|
||||
;
|
||||
int %different_array_test(uint %A, uint %B) {
|
||||
int %different_array_test(long %A, long %B) {
|
||||
%Array1 = alloca int, uint 100
|
||||
%Array2 = alloca int, uint 200
|
||||
|
||||
%pointer = getelementptr int* %Array1, uint %A
|
||||
%pointer = getelementptr int* %Array1, long %A
|
||||
%val = load int* %pointer
|
||||
|
||||
%pointer2 = getelementptr int* %Array2, uint %B
|
||||
%pointer2 = getelementptr int* %Array2, long %B
|
||||
store int 7, int* %pointer2
|
||||
|
||||
%REMOVE = load int* %pointer ; redundant with above load
|
||||
@ -30,8 +30,8 @@ int %different_array_test(uint %A, uint %B) {
|
||||
;
|
||||
int %constant_array_index_test() {
|
||||
%Array = alloca int, uint 100
|
||||
%P1 = getelementptr int* %Array, uint 7
|
||||
%P2 = getelementptr int* %Array, uint 6
|
||||
%P1 = getelementptr int* %Array, long 7
|
||||
%P2 = getelementptr int* %Array, long 6
|
||||
|
||||
%A = load int* %P1
|
||||
store int 1, int* %P2 ; Should not invalidate load
|
||||
|
Loading…
Reference in New Issue
Block a user