diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-15 19:48:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-15 19:48:48 +0000 |
commit | 83a278efadf7d252ce7a0192cc049b16b14a1f8b (patch) | |
tree | b614a67cbfd91dcfbe447b234390dbd66563b588 /test/Feature | |
parent | 9edfe8aa1831967327839fead0561fe80415ef4a (diff) | |
download | external_llvm-83a278efadf7d252ce7a0192cc049b16b14a1f8b.zip external_llvm-83a278efadf7d252ce7a0192cc049b16b14a1f8b.tar.gz external_llvm-83a278efadf7d252ce7a0192cc049b16b14a1f8b.tar.bz2 |
Convert testcase to use correct syntax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r-- | test/Feature/constexpr.ll | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/test/Feature/constexpr.ll b/test/Feature/constexpr.ll index 7fbb5aa..08d94f7 100644 --- a/test/Feature/constexpr.ll +++ b/test/Feature/constexpr.ll @@ -6,16 +6,16 @@ ;; Test constant cast expressions ;;------------------------------- -%t2 = global int* %t1 ;; Forward reference without cast -%t3 = global uint* cast int* %t1 ;; Forward reference with cast -%t1 = global int 4 ;; int* %0 -%t4 = global int** cast uint** %t3 ;; Cast of a previous cast -%t5 = global uint** %t3 ;; Reference to a previous cast -%t6 = global int*** %t4 ;; Different ref. to a previous cast -%t7 = global float* cast int 12345678 ;; Cast ordinary value to ptr -%t9 = global int cast float cast int 8 ;; Nested cast expression - -global int* cast float* %0 ;; Forward numeric reference +%t2 = global int* %t1 ;; Forward reference without cast +%t3 = global uint* cast int* %t1 to uint* ;; Forward reference with cast +%t1 = global int 4 ;; int* %0 +%t4 = global int** cast uint** %t3 to int** ;; Cast of a previous cast +%t5 = global uint** %t3 ;; Reference to a previous cast +%t6 = global int*** %t4 ;; Different ref. to a previous cast +%t7 = global float* cast int 12345678 to float* ;; Cast ordinary value to ptr +%t9 = global int cast float cast int 8 to float to int ;; Nested cast expression + +global int* cast float* %0 to int* ;; Forward numeric reference global float* %0 ;; Duplicate forward numeric reference global float 0.0 @@ -31,9 +31,11 @@ global float 0.0 %somestr = constant [11x sbyte] c"hello world" %char5 = global sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 5) -%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) ;; cast of getelementptr +;; cast of getelementptr +%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int* -%char8b = global sbyte* getelementptr([11x sbyte]* %somestr, uint cast ubyte 0, uint cast sbyte 8) ;; getelementptr containing casts +;; getelementptr containing casts +%char8b = global sbyte* getelementptr([11x sbyte]* %somestr, uint cast ubyte 0 to uint, uint cast sbyte 8 to uint) ;;------------------------------------------------------- ;; TODO: Test constant getelementpr expressions for structures @@ -73,9 +75,9 @@ global float 0.0 ;; Test duplicate constant expressions ;;--------------------------------------------------- -%t4 = global int** cast uint** %t3 +%t4 = global int** cast uint** %t3 to int** -%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) +%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int* %S3fld3 = global float* getelementptr (%SAType** %S3, uint 0, uint 0, ubyte 1, ubyte 0, uint 0) |