llvm.org GIT mirror llvm / 85907a6
Convert constexpr over to new syntax git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3359 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 18 years ago
1 changed file(s) with 13 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
55 ;; Test constant cast expressions
66 ;;-------------------------------
77
8 %t2 = global int* %t1 ;; Forward reference without cast
9 %t3 = global uint* cast int* %t1 to uint* ;; Forward reference with cast
10 %t1 = global int 4 ;; int* %0
11 %t4 = global int** cast uint** %t3 to int** ;; Cast of a previous cast
12 %t5 = global uint** %t3 ;; Reference to a previous cast
13 %t6 = global int*** %t4 ;; Different ref. to a previous cast
14 %t7 = global float* cast int 12345678 to float* ;; Cast ordinary value to ptr
15 %t9 = global int cast float cast int 8 to float to int ;; Nested cast expression
8 %t2 = global int* %t1 ;; Forward reference without cast
9 %t3 = global uint* cast (int* %t1 to uint*) ;; Forward reference with cast
10 %t1 = global int 4 ;; int* %0
11 %t4 = global int** cast (uint** %t3 to int**) ;; Cast of a previous cast
12 %t5 = global uint** %t3 ;; Reference to a previous cast
13 %t6 = global int*** %t4 ;; Different ref. to a previous cast
14 %t7 = global float* cast (int 12345678 to float*) ;; Cast ordinary value to ptr
15 %t9 = global int cast (float cast (int 8 to float) to int) ;; Nested cast expression
1616
17 global int* cast float* %0 to int* ;; Forward numeric reference
17 global int* cast (float* %0 to int*) ;; Forward numeric reference
1818 global float* %0 ;; Duplicate forward numeric reference
1919 global float 0.0
2020
3131 %char5 = global sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 5)
3232
3333 ;; cast of getelementptr
34 %char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*
34 %char8a = global int* cast (sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*)
3535
3636 ;; getelementptr containing casts
37 %char8b = global sbyte* getelementptr([11x sbyte]* %somestr, uint cast ubyte 0 to uint, uint cast sbyte 8 to uint)
37 %char8b = global sbyte* getelementptr([11x sbyte]* %somestr, uint cast (ubyte 0 to uint), uint cast (sbyte 8 to uint))
3838
3939 ;;-------------------------------------------------------
4040 ;; TODO: Test constant getelementpr expressions for structures
7474 ;; Test duplicate constant expressions
7575 ;;---------------------------------------------------
7676
77 %t4 = global int** cast uint** %t3 to int**
77 %t4 = global int** cast (uint** %t3 to int**)
7878
79 %char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*
79 %char8a = global int* cast (sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*)
8080
8181 %S3fld3 = global float* getelementptr (%SAType** %S3, uint 0, uint 0, ubyte 1, ubyte 0, uint 0)
8282