summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-12 16:40:08 +0000
committerChris Lattner <sabre@nondot.org>2003-11-12 16:40:08 +0000
commitf88e8d9c12f6e65685b2925f15322b1a3963e45f (patch)
tree970db078cceeb4c2985110650ea6ccfa4b3f5cc2
parenta360143bedc19375ac162f2bf82e66f5d159c9cd (diff)
downloadbcm5719-llvm-f88e8d9c12f6e65685b2925f15322b1a3963e45f.tar.gz
bcm5719-llvm-f88e8d9c12f6e65685b2925f15322b1a3963e45f.zip
The bytecode reader/writer is borking this testcase
llvm-svn: 9919
-rw-r--r--llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx b/llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx
new file mode 100644
index 00000000000..bceae9f3888
--- /dev/null
+++ b/llvm/test/Regression/Assembler/2003-11-12-ConstantExprCast.llx
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llvm-dis | grep ' cast ('
+
+%.Base64_1 = external constant [4 x sbyte]
+
+ubyte %test(sbyte %X) { ; No predecessors!
+ %X = cast sbyte %X to ubyte ; <ubyte> [#uses=1]
+ %tmp.13 = add ubyte %X, cast (sbyte sub (sbyte 0, sbyte cast ([4 x sbyte]* %.Base64_1 to sbyte)) to ubyte) ; <ubyte> [#uses=1]
+ ret ubyte %tmp.13
+}
+
OpenPOWER on IntegriCloud