summaryrefslogtreecommitdiffstats
path: root/llvm/test/Integer/constexpr_bt.ll
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-16 22:31:46 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-16 22:31:46 +0000
commit4eac5b315db36b51aa5951b70957015c69708a40 (patch)
treea7cc3c762b9851c7cb7c00b4bc46b7d14e6d244c /llvm/test/Integer/constexpr_bt.ll
parenta3facd734aa32138981986f5367b7b5559544e96 (diff)
downloadbcm5719-llvm-4eac5b315db36b51aa5951b70957015c69708a40.tar.gz
bcm5719-llvm-4eac5b315db36b51aa5951b70957015c69708a40.zip
Fix test cases. Patch by Guoling Han.
llvm-svn: 33272
Diffstat (limited to 'llvm/test/Integer/constexpr_bt.ll')
-rw-r--r--llvm/test/Integer/constexpr_bt.ll11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/Integer/constexpr_bt.ll b/llvm/test/Integer/constexpr_bt.ll
index 9792e511924..45529889a95 100644
--- a/llvm/test/Integer/constexpr_bt.ll
+++ b/llvm/test/Integer/constexpr_bt.ll
@@ -1,7 +1,7 @@
; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
-; XFAIL: *
+
; This testcase is for testing expressions constructed from
; constant values, including constant pointers to globals.
@@ -11,8 +11,8 @@
;; Test constant cast expressions
;;-------------------------------
-global i63 0x00001 ; hexadecimal unsigned integer constants
-global i63 0x012312 ; hexadecimal signed integer constants
+global i63 u0x00001 ; hexadecimal unsigned integer constants
+global i63 s0x012312 ; hexadecimal signed integer constants
%t2 = global i33* %t1 ;; Forward reference without cast
%t3 = global i33* bitcast (i33* %t1 to i33*) ;; Forward reference with cast
@@ -21,7 +21,8 @@ global i63 0x012312 ; hexadecimal signed integer constants
%t5 = global i33** %t3 ;; Reference to a previous cast
%t6 = global i33*** %t4
%t7 = global float* inttoptr (i32 12345678 to float*) ;; Cast ordinary value to ptr
-%t9 = global i33 fp2uint (float sitofp (i33 8 to float) to i33) ;; Nested cast expression
+%t9 = global i33 fptosi (float sitofp (i33 8 to float) to i33) ;; Nested cast expression
+
global i32* bitcast (float* %0 to i32*) ;; Forward numeric reference
global float* %0 ;; Duplicate forward numeric reference
@@ -40,7 +41,7 @@ global float 0.0
%char5 = global i8* getelementptr([11x i8]* %somestr, i64 0, i64 5)
;; cast of getelementptr
-%char8a = global i33* sext (i8* getelementptr([11x i8]* %somestr, i64 0, i64 8) to i33*)
+%char8a = global i33* bitcast (i8* getelementptr([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))
OpenPOWER on IntegriCloud