[llvm-commits] CVS: llvm/test/Feature/constexpr.ll globalvars.ll recursivetype.ll testalloca.ll testmemory.ll
Reid Spencer
reid at x10sys.com
Thu Nov 23 07:15:46 PST 2006
Changes in directory llvm/test/Feature:
constexpr.ll updated: 1.8 -> 1.9
globalvars.ll updated: 1.8 -> 1.9
recursivetype.ll updated: 1.5 -> 1.6
testalloca.ll updated: 1.6 -> 1.7
testmemory.ll updated: 1.7 -> 1.8
---
Log message:
Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.
---
Diffs of the changes: (+16 -15)
constexpr.ll | 11 ++++++-----
globalvars.ll | 2 +-
recursivetype.ll | 4 ++--
testalloca.ll | 8 ++++----
testmemory.ll | 6 +++---
5 files changed, 16 insertions(+), 15 deletions(-)
Index: llvm/test/Feature/constexpr.ll
diff -u llvm/test/Feature/constexpr.ll:1.8 llvm/test/Feature/constexpr.ll:1.9
--- llvm/test/Feature/constexpr.ll:1.8 Sun Nov 7 00:08:43 2004
+++ llvm/test/Feature/constexpr.ll Thu Nov 23 09:14:52 2006
@@ -61,17 +61,18 @@
%S3 = global %SAType* %S3c ;; Ref. to constant S3
;; Pointer to float (**%S1).1.0
-%S1fld1a = global float* getelementptr (%SType* %S2c, long 0, ubyte 1, ubyte 0)
+%S1fld1a = global float* getelementptr (%SType* %S2c, long 0, uint 1, uint 0)
;; Another ptr to the same!
-%S1fld1b = global float* getelementptr (%SType* %S2c, long 0, ubyte 1, ubyte 0)
+%S1fld1b = global float* getelementptr (%SType* %S2c, long 0, uint 1, uint 0)
%S1fld1bptr = global float** %S1fld1b ;; Ref. to previous pointer
;; Pointer to ubyte (**%S2).1.1.0
-%S2fld3 = global ubyte* getelementptr (%SType* %S2c, long 0, ubyte 1, ubyte 1, ubyte 0)
+%S2fld3 = global ubyte* getelementptr (%SType* %S2c, long 0, uint 1, uint 1, %uint 0)
;; Pointer to float (**%S2).1.0[0]
-;%S3fld3 = global float* getelementptr (%SAType** %S3, long 0, long 0, ubyte 1, ubyte 0, long 0)
+;%S3fld3 = global float* getelementptr (%SAType** %S3, long 0, long 0, uint 1,
+uint 0, long 0)
;;---------------------------------------------------------
;; TODO: Test constant expressions for unary and binary operators
@@ -86,7 +87,7 @@
%char8a = global int* cast (sbyte* getelementptr([11x sbyte]* %somestr, long 0, long 8) to int*)
-;%S3fld3 = global float* getelementptr (%SAType** %S3, long 0, long 0, ubyte 1, ubyte 0, long 0)
+;%S3fld3 = global float* getelementptr (%SAType** %S3, long 0, long 0, uint 1, uint 0, long 0)
;;---------------------------------------------------
Index: llvm/test/Feature/globalvars.ll
diff -u llvm/test/Feature/globalvars.ll:1.8 llvm/test/Feature/globalvars.ll:1.9
--- llvm/test/Feature/globalvars.ll:1.8 Sun Nov 7 00:08:43 2004
+++ llvm/test/Feature/globalvars.ll Thu Nov 23 09:14:52 2006
@@ -19,7 +19,7 @@
int "foo"(int %blah)
begin
store int 5, int *%MyVar
- %idx = getelementptr { \2 *, int } * %MyIntList, long 0, ubyte 1
+ %idx = getelementptr { \2 *, int } * %MyIntList, long 0, uint 1
store int 12, int* %idx
ret int %blah
end
Index: llvm/test/Feature/recursivetype.ll
diff -u llvm/test/Feature/recursivetype.ll:1.5 llvm/test/Feature/recursivetype.ll:1.6
--- llvm/test/Feature/recursivetype.ll:1.5 Sun Nov 7 00:08:43 2004
+++ llvm/test/Feature/recursivetype.ll Thu Nov 23 09:14:52 2006
@@ -93,7 +93,7 @@
ret %list* null
bb4:
- %idx = getelementptr %list* %reg115, long 0, ubyte 1 ;;<int>
+ %idx = getelementptr %list* %reg115, long 0, uint 1 ;;<int>
%reg111 = load int* %idx
%cond1013 = setne int %reg111, %Data ;;<bool>
br bool %cond1013, label %bb6, label %bb5
@@ -102,7 +102,7 @@
ret %list* %reg115
bb6:
- %idx2 = getelementptr %list* %reg115, long 0, ubyte 0 ;;<%list*>
+ %idx2 = getelementptr %list* %reg115, long 0, uint 0 ;;<%list*>
%reg116 = load %list** %idx2
br label %bb2
end
Index: llvm/test/Feature/testalloca.ll
diff -u llvm/test/Feature/testalloca.ll:1.6 llvm/test/Feature/testalloca.ll:1.7
--- llvm/test/Feature/testalloca.ll:1.6 Sun Nov 7 00:08:43 2004
+++ llvm/test/Feature/testalloca.ll Thu Nov 23 09:14:52 2006
@@ -15,12 +15,12 @@
%val = load int* %ptr ; yields {int}:val = int %3
%sptr = alloca %struct ; yields {%struct*}:sptr
- %nsptr = getelementptr %struct * %sptr, long 0, ubyte 1 ; yields {inners*}:nsptr
- %ubsptr = getelementptr %inners * %nsptr, long 0, ubyte 1 ; yields {{ubyte}*}:ubsptr
- %idx = getelementptr {ubyte} * %ubsptr, long 0, ubyte 0
+ %nsptr = getelementptr %struct * %sptr, long 0, uint 1 ; yields {inners*}:nsptr
+ %ubsptr = getelementptr %inners * %nsptr, long 0, uint 1 ; yields {{ubyte}*}:ubsptr
+ %idx = getelementptr {ubyte} * %ubsptr, long 0, uint 0
store ubyte 4, ubyte* %idx
- %fptr = getelementptr %struct * %sptr, long 0, ubyte 1, ubyte 0 ; yields {float*}:fptr
+ %fptr = getelementptr %struct * %sptr, long 0, uint 1, uint 0 ; yields {float*}:fptr
store float 4.0, float * %fptr
ret int 3
Index: llvm/test/Feature/testmemory.ll
diff -u llvm/test/Feature/testmemory.ll:1.7 llvm/test/Feature/testmemory.ll:1.8
--- llvm/test/Feature/testmemory.ll:1.7 Sun Nov 7 00:08:43 2004
+++ llvm/test/Feature/testmemory.ll Thu Nov 23 09:14:52 2006
@@ -28,7 +28,7 @@
%aa = alloca %complexty, uint 5
- %idx2 = getelementptr %complexty* %aa, long %i0, ubyte 1, ubyte 0, long %j0
+ %idx2 = getelementptr %complexty* %aa, long %i0, uint 1, uint 0, long %j0
store sbyte *null, sbyte** %idx2
%ptr = alloca int ; yields {int*}:ptr
@@ -36,8 +36,8 @@
%val = load int* %ptr ; yields {int}:val = int %3
%sptr = alloca %struct ; yields {%struct*}:sptr
- %ubsptr = getelementptr %struct * %sptr, long 0, ubyte 1, ubyte 1 ; yields {{ubyte}*}:ubsptr
- %idx3 = getelementptr {ubyte} * %ubsptr, long 0, ubyte 0
+ %ubsptr = getelementptr %struct * %sptr, long 0, uint 1, uint 1 ; yields {{ubyte}*}:ubsptr
+ %idx3 = getelementptr {ubyte} * %ubsptr, long 0, uint 0
store ubyte 4, ubyte* %idx3
ret int 3
More information about the llvm-commits
mailing list