summaryrefslogtreecommitdiff
path: root/test/Feature/constexpr.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-15 21:14:39 +0000
committerChris Lattner <sabre@nondot.org>2002-08-15 21:14:39 +0000
commit85907a64c2e63e1420c915f0537fbf5af92c2e7d (patch)
treed7bcb7efbb44ed2594f97e8ff1bd7ff60e939ef8 /test/Feature/constexpr.ll
parent81003a4cc4f5606424e7ed0036ca584e1d1088c5 (diff)
downloadllvm-85907a64c2e63e1420c915f0537fbf5af92c2e7d.tar.gz
llvm-85907a64c2e63e1420c915f0537fbf5af92c2e7d.tar.bz2
llvm-85907a64c2e63e1420c915f0537fbf5af92c2e7d.tar.xz
Convert constexpr over to new syntax
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature/constexpr.ll')
-rw-r--r--test/Feature/constexpr.ll28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/Feature/constexpr.ll b/test/Feature/constexpr.ll
index 08d94f7e27..a107241e29 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 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
+%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
@@ -32,10 +32,10 @@ global float 0.0
%char5 = global sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 5)
;; cast of getelementptr
-%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*
+%char8a = global int* cast (sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*)
;; getelementptr containing casts
-%char8b = global sbyte* getelementptr([11x sbyte]* %somestr, uint cast ubyte 0 to uint, uint cast sbyte 8 to uint)
+%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
@@ -75,9 +75,9 @@ global float 0.0
;; Test duplicate constant expressions
;;---------------------------------------------------
-%t4 = global int** cast uint** %t3 to int**
+%t4 = global int** cast (uint** %t3 to int**)
-%char8a = global int* cast sbyte* getelementptr([11x sbyte]* %somestr, uint 0, uint 8) to int*
+%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)