Mercurial > hg > CbC > CbC_llvm
comparison test/Feature/constexpr.ll @ 122:36195a0db682
merging ( incomplete )
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 17 Nov 2017 20:32:31 +0900 |
parents | 1172e4bd9c6f |
children |
comparison
equal
deleted
inserted
replaced
119:d9df2cbd60cd | 122:36195a0db682 |
---|---|
8 | 8 |
9 ;;------------------------------- | 9 ;;------------------------------- |
10 ;; Test constant cast expressions | 10 ;; Test constant cast expressions |
11 ;;------------------------------- | 11 ;;------------------------------- |
12 | 12 |
13 global i64 u0x00001 ; hexadecimal unsigned integer constants | 13 @0 = global i64 u0x00001 ; hexadecimal unsigned integer constants |
14 global i64 s0x0012312 ; hexadecimal signed integer constants | 14 @1 = global i64 s0x0012312 ; hexadecimal signed integer constants |
15 | 15 |
16 @t2 = global i32* @t1 ;; Forward reference without cast | 16 @t2 = global i32* @t1 ;; Forward reference without cast |
17 @t3 = global i32* bitcast (i32* @t1 to i32*) ;; Forward reference with cast | 17 @t3 = global i32* bitcast (i32* @t1 to i32*) ;; Forward reference with cast |
18 @t1 = global i32 4 ;; i32* @0 | 18 @t1 = global i32 4 ;; i32* @0 |
19 @t4 = global i32** bitcast (i32** @t3 to i32**) ;; Cast of a previous cast | 19 @t4 = global i32** bitcast (i32** @t3 to i32**) ;; Cast of a previous cast |
20 @t5 = global i32** @t3 ;; Reference to a previous cast | 20 @t5 = global i32** @t3 ;; Reference to a previous cast |
21 @t6 = global i32*** @t4 ;; Different ref. to a previous cast | 21 @t6 = global i32*** @t4 ;; Different ref. to a previous cast |
22 @t7 = global float* inttoptr (i32 12345678 to float*) ;; Cast ordinary value to ptr | 22 @t7 = global float* inttoptr (i32 12345678 to float*) ;; Cast ordinary value to ptr |
23 @t9 = global i32 bitcast (float bitcast (i32 8 to float) to i32) ;; Nested cast expression | 23 @t9 = global i32 bitcast (float bitcast (i32 8 to float) to i32) ;; Nested cast expression |
24 | 24 |
25 global i32* bitcast (float* @4 to i32*) ;; Forward numeric reference | 25 @2 = global i32* bitcast (float* @4 to i32*) ;; Forward numeric reference |
26 global float* @4 ;; Duplicate forward numeric reference | 26 @3 = global float* @4 ;; Duplicate forward numeric reference |
27 global float 0.0 | 27 @4 = global float 0.0 |
28 | 28 |
29 | 29 |
30 ;;--------------------------------------------------- | 30 ;;--------------------------------------------------- |
31 ;; Test constant getelementpr expressions for arrays | 31 ;; Test constant getelementpr expressions for arrays |
32 ;;--------------------------------------------------- | 32 ;;--------------------------------------------------- |