summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-23 06:50:36 +0000
committerChris Lattner <sabre@nondot.org>2009-10-23 06:50:36 +0000
commit59f94c01dd726f320382daded7f4e3bb09e81690 (patch)
tree1278459397813ef1266a93d6a095b70a9d2da5ec /llvm/test
parented00b80bf8409e200f5a713fca6cc5859c6140f6 (diff)
downloadbcm5719-llvm-59f94c01dd726f320382daded7f4e3bb09e81690.tar.gz
bcm5719-llvm-59f94c01dd726f320382daded7f4e3bb09e81690.zip
enhance FoldReinterpretLoadFromConstPtr to handle loads of up to 32
bytes (i256). llvm-svn: 84941
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/ConstProp/loads.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ConstProp/loads.ll b/llvm/test/Transforms/ConstProp/loads.ll
index f3633cc4438..3096ed347cb 100644
--- a/llvm/test/Transforms/ConstProp/loads.ll
+++ b/llvm/test/Transforms/ConstProp/loads.ll
@@ -4,6 +4,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
@test1 = constant {{i32,i8},i32} {{i32,i8} { i32 -559038737, i8 186 }, i32 -889275714 }
@test2 = constant double 1.0
+@test3 = constant {i64, i64} { i64 123, i64 112312312 }
; Simple load
define i32 @test1() {
@@ -66,3 +67,13 @@ define double @test8() {
; @test8
; CHECK: ret double 0xDEADBEBA
}
+
+
+; i128 load.
+define i128 @test9() {
+ %r = load i128* bitcast({i64, i64}* @test3 to i128*)
+ ret i128 %r
+
+; @test9
+; CHECK: ret i128 112312312
+}
OpenPOWER on IntegriCloud