]> granicus.if.org Git - llvm/commitdiff
New testcase
authorChris Lattner <sabre@nondot.org>
Mon, 26 May 2003 23:41:13 +0000 (23:41 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 May 2003 23:41:13 +0000 (23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6337 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll b/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll
new file mode 100644 (file)
index 0000000..e285120
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: as < %s | opt -instcombine | dis | grep 4294967295
+
+ulong %test(ulong %Val) {
+        %tmp.3 = cast ulong %Val to uint              ; <uint> [#uses=1]
+        %tmp.8 = cast uint %tmp.3 to ulong              ; <ulong> [#uses=1]
+       ret ulong %tmp.8
+}