aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/InstCombine/2002-08-02-CastTest.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/InstCombine/2002-08-02-CastTest.ll')
-rw-r--r--test/Transforms/InstCombine/2002-08-02-CastTest.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2002-08-02-CastTest.ll b/test/Transforms/InstCombine/2002-08-02-CastTest.ll
new file mode 100644
index 0000000..23284a6
--- /dev/null
+++ b/test/Transforms/InstCombine/2002-08-02-CastTest.ll
@@ -0,0 +1,11 @@
+; This testcase is incorrectly getting completely eliminated. There should be
+; SOME instruction named %c here, even if it's a bitwise and.
+;
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep %c
+;
+ulong %test3(ulong %A) {
+ %c1 = cast ulong %A to ubyte
+ %c2 = cast ubyte %c1 to ulong
+ ret ulong %c2
+}
+