aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/InstCombine/cast.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll
index 11d95ca7e5..53e2c2e25d 100644
--- a/test/Transforms/InstCombine/cast.ll
+++ b/test/Transforms/InstCombine/cast.ll
@@ -2,6 +2,8 @@
; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep '%c' | not grep cast
+%inbuf = external global [32832 x ubyte]
+
implementation
int %test1(int %A) {
@@ -79,3 +81,9 @@ int* %test12() {
%c = cast [4 x sbyte]* %p to int*
ret int* %c
}
+
+
+ubyte *%test13(long %A) {
+ %c = getelementptr [0 x ubyte]* cast ([32832 x ubyte]* %inbuf to [0 x ubyte]*), long 0, long %A
+ ret ubyte* %c
+}