diff options
-rw-r--r-- | test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll b/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll new file mode 100644 index 0000000000..e285120598 --- /dev/null +++ b/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll @@ -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 +} |