diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-24 17:54:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-24 17:54:56 +0000 |
commit | fa48be79ae2298d80380ad69bc67cb40e65a0e2e (patch) | |
tree | e314c6069af6201fa0f585b03bb79d84c75e14d7 | |
parent | 53249865ec4bca31481f29b8f35e3695c90437f7 (diff) |
new testcase that crashes -reassociate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23018 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/Reassociate/2005-08-24-Crash.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/Transforms/Reassociate/2005-08-24-Crash.ll b/test/Transforms/Reassociate/2005-08-24-Crash.ll new file mode 100644 index 0000000000..c1d5259ed5 --- /dev/null +++ b/test/Transforms/Reassociate/2005-08-24-Crash.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | opt -reassociate -disable-output + +void %test(int %a, int %b, int %c, int %d) { + %tmp.2 = xor int %a, %b ; <int> [#uses=1] + %tmp.5 = xor int %c, %d ; <int> [#uses=1] + %tmp.6 = xor int %tmp.2, %tmp.5 ; <int> [#uses=1] + %tmp.9 = xor int %c, %a ; <int> [#uses=1] + %tmp.12 = xor int %b, %d ; <int> [#uses=1] + %tmp.13 = xor int %tmp.9, %tmp.12 ; <int> [#uses=1] + %tmp.16 = xor int %tmp.6, %tmp.13 ; <int> [#uses=0] + ret void +} |