diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/Integer | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/Integer')
-rw-r--r-- | test/Integer/2007-01-19-TruncSext.ll | 8 | ||||
-rw-r--r-- | test/Integer/BitPacked.ll | 4 | ||||
-rw-r--r-- | test/Integer/constexpr_bt.ll | 18 | ||||
-rw-r--r-- | test/Integer/packed_bt.ll | 4 | ||||
-rw-r--r-- | test/Integer/packed_struct_bt.ll | 10 |
5 files changed, 22 insertions, 22 deletions
diff --git a/test/Integer/2007-01-19-TruncSext.ll b/test/Integer/2007-01-19-TruncSext.ll index e6d89dd..a487eb2 100644 --- a/test/Integer/2007-01-19-TruncSext.ll +++ b/test/Integer/2007-01-19-TruncSext.ll @@ -11,7 +11,7 @@ declare i32 @printf(i8* %format, ...) define void @multiply(i32 %index, i32 %X, i32 %Y) { %Z = mul i32 %X, %Y - %P = getelementptr [20 x i17]* @ARRAY, i32 0, i32 %index + %P = getelementptr [20 x i17], [20 x i17]* @ARRAY, i32 0, i32 %index %Result = trunc i32 %Z to i17 store i17 %Result, i17* %P ret void @@ -20,10 +20,10 @@ define void @multiply(i32 %index, i32 %X, i32 %Y) { define i32 @main(i32 %argc, i8** %argv) { %i = bitcast i32 0 to i32 call void @multiply(i32 %i, i32 -1, i32 255) - %P = getelementptr [20 x i17]* @ARRAY, i32 0, i32 0 - %X = load i17* %P + %P = getelementptr [20 x i17], [20 x i17]* @ARRAY, i32 0, i32 0 + %X = load i17, i17* %P %result = sext i17 %X to i32 - %fmt = getelementptr [4 x i8]* @FORMAT, i32 0, i32 0 + %fmt = getelementptr [4 x i8], [4 x i8]* @FORMAT, i32 0, i32 0 call i32 (i8*,...)* @printf(i8* %fmt, i32 %result) ret i32 0 } diff --git a/test/Integer/BitPacked.ll b/test/Integer/BitPacked.ll index e6e453a..def0a83 100644 --- a/test/Integer/BitPacked.ll +++ b/test/Integer/BitPacked.ll @@ -10,8 +10,8 @@ define void @main() { store <4 x float> <float 1.0, float 2.0, float 3.0, float 4.0>, <4 x float>* @foo1 store <2 x i10> <i10 4, i10 4>, <2 x i10>* @foo2 - %l1 = load <4 x float>* @foo1 - %l2 = load <2 x i10>* @foo2 + %l1 = load <4 x float>, <4 x float>* @foo1 + %l2 = load <2 x i10>, <2 x i10>* @foo2 %r1 = extractelement <2 x i10> %l2, i32 1 %r2 = extractelement <2 x i10> %l2, i32 0 %t = mul i10 %r1, %r2 diff --git a/test/Integer/constexpr_bt.ll b/test/Integer/constexpr_bt.ll index fc8b06d..36094df 100644 --- a/test/Integer/constexpr_bt.ll +++ b/test/Integer/constexpr_bt.ll @@ -34,17 +34,17 @@ global float 0.0 ;;--------------------------------------------------- @array = constant [2 x i33] [ i33 12, i33 52 ] -@arrayPtr = global i33* getelementptr ([2 x i33]* @array, i64 0, i64 0) ;; i33* &@array[0][0] -@arrayPtr5 = global i33** getelementptr (i33** @arrayPtr, i64 5) ;; i33* &@arrayPtr[5] +@arrayPtr = global i33* getelementptr ([2 x i33], [2 x i33]* @array, i64 0, i64 0) ;; i33* &@array[0][0] +@arrayPtr5 = global i33** getelementptr (i33*, i33** @arrayPtr, i64 5) ;; i33* &@arrayPtr[5] @somestr = constant [11x i8] c"hello world" -@char5 = global i8* getelementptr([11x i8]* @somestr, i64 0, i64 5) +@char5 = global i8* getelementptr([11x i8], [11x i8]* @somestr, i64 0, i64 5) ;; cast of getelementptr -@char8a = global i33* bitcast (i8* getelementptr([11x i8]* @somestr, i64 0, i64 8) to i33*) +@char8a = global i33* bitcast (i8* getelementptr([11x i8], [11x i8]* @somestr, i64 0, i64 8) to i33*) ;; getelementptr containing casts -@char8b = global i8* getelementptr([11x i8]* @somestr, i64 sext (i8 0 to i64), i64 sext (i8 8 to i64)) +@char8b = global i8* getelementptr([11x i8], [11x i8]* @somestr, i64 sext (i8 0 to i64), i64 sext (i8 8 to i64)) ;;------------------------------------------------------- ;; TODO: Test constant getelementpr expressions for structures @@ -63,17 +63,17 @@ global float 0.0 @S3 = global %SAType* @S3c ;; Ref. to constant S3 ;; Pointer to float (**@S1).1.0 -@S1fld1a = global float* getelementptr (%SType* @S2c, i64 0, i32 1, i32 0) +@S1fld1a = global float* getelementptr (%SType, %SType* @S2c, i64 0, i32 1, i32 0) ;; Another ptr to the same! -@S1fld1b = global float* getelementptr (%SType* @S2c, i64 0, i32 1, i32 0) +@S1fld1b = global float* getelementptr (%SType, %SType* @S2c, i64 0, i32 1, i32 0) @S1fld1bptr = global float** @S1fld1b ;; Ref. to previous pointer ;; Pointer to i8 (**@S2).1.1.0 -@S2fld3 = global i8* getelementptr (%SType* @S2c, i64 0, i32 1, i32 1, i32 0) +@S2fld3 = global i8* getelementptr (%SType, %SType* @S2c, i64 0, i32 1, i32 1, i32 0) ;; Pointer to float (**@S2).1.0[0] -;@S3fld3 = global float* getelementptr (%SAType** @S3, i64 0, i64 0, i32 1, i32 0, i64 0) +;@S3fld3 = global float* getelementptr (%SAType*, %SAType** @S3, i64 0, i64 0, i32 1, i32 0, i64 0) ;;--------------------------------------------------------- ;; TODO: Test constant expressions for unary and binary operators diff --git a/test/Integer/packed_bt.ll b/test/Integer/packed_bt.ll index f6ea87c..ecaf621 100644 --- a/test/Integer/packed_bt.ll +++ b/test/Integer/packed_bt.ll @@ -10,7 +10,7 @@ define void @main() { store <4 x float> <float 1.0, float 2.0, float 3.0, float 4.0>, <4 x float>* @foo1 store <2 x i10> <i10 4, i10 4>, <2 x i10>* @foo2 - %l1 = load <4 x float>* @foo1 - %l2 = load <2 x i10>* @foo2 + %l1 = load <4 x float>, <4 x float>* @foo1 + %l2 = load <2 x i10>, <2 x i10>* @foo2 ret void } diff --git a/test/Integer/packed_struct_bt.ll b/test/Integer/packed_struct_bt.ll index b8301ba..ae9a04c 100644 --- a/test/Integer/packed_struct_bt.ll +++ b/test/Integer/packed_struct_bt.ll @@ -16,9 +16,9 @@ define i35 @main() { - %tmp = load i35* getelementptr (%struct.anon* @foos, i32 0, i32 1) ; <i35> [#uses=1] - %tmp3 = load i35* getelementptr (%struct.anon* @foos, i32 0, i32 2) ; <i35> [#uses=1] - %tmp6 = load i35* getelementptr (%struct.anon* @foos, i32 0, i32 3) ; <i35> [#uses=1] + %tmp = load i35, i35* getelementptr (%struct.anon, %struct.anon* @foos, i32 0, i32 1) ; <i35> [#uses=1] + %tmp3 = load i35, i35* getelementptr (%struct.anon, %struct.anon* @foos, i32 0, i32 2) ; <i35> [#uses=1] + %tmp6 = load i35, i35* getelementptr (%struct.anon, %struct.anon* @foos, i32 0, i32 3) ; <i35> [#uses=1] %tmp4 = add i35 %tmp3, %tmp ; <i35> [#uses=1] %tmp7 = add i35 %tmp4, %tmp6 ; <i35> [#uses=1] ret i35 %tmp7 @@ -26,8 +26,8 @@ define i35 @main() define i35 @bar() { entry: - %tmp = load i35* getelementptr([2 x <{ i35, i8 }>]* @bara, i32 0, i32 0, i32 0 ) ; <i35> [#uses=1] - %tmp4 = load i35* getelementptr ([2 x <{ i35, i8 }>]* @bara, i32 0, i32 1, i32 0) ; <i35> [#uses=1] + %tmp = load i35, i35* getelementptr([2 x <{ i35, i8 }>], [2 x <{ i35, i8 }>]* @bara, i32 0, i32 0, i32 0 ) ; <i35> [#uses=1] + %tmp4 = load i35, i35* getelementptr ([2 x <{ i35, i8 }>], [2 x <{ i35, i8 }>]* @bara, i32 0, i32 1, i32 0) ; <i35> [#uses=1] %tmp5 = add i35 %tmp4, %tmp ; <i35> [#uses=1] ret i35 %tmp5 } |