diff options
| author | Chris Lattner <sabre@nondot.org> | 2002-05-08 23:15:01 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2002-05-08 23:15:01 +0000 |
| commit | 936e9f0e49f64ad0076c53437c83d45d17adb11c (patch) | |
| tree | c8b1da23464aa79bd7453475808ab7b28b8dbd8b | |
| parent | f5cbf64ed2f2cf498273564aaa1747d9ceb52a28 (diff) | |
| download | bcm5719-llvm-936e9f0e49f64ad0076c53437c83d45d17adb11c.tar.gz bcm5719-llvm-936e9f0e49f64ad0076c53437c83d45d17adb11c.zip | |
Add two new patterns that instcombine should or does handle
llvm-svn: 2563
| -rw-r--r-- | llvm/test/Regression/Transforms/InstCombine/sub.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/test/Regression/Transforms/InstCombine/sub.ll b/llvm/test/Regression/Transforms/InstCombine/sub.ll index fbec5e8a388..bbdf0b3787c 100644 --- a/llvm/test/Regression/Transforms/InstCombine/sub.ll +++ b/llvm/test/Regression/Transforms/InstCombine/sub.ll @@ -23,3 +23,15 @@ int "test3"(int %A) { %C = sub int 0, %B ; C = -B = A ret int %C } + +int "test4"(int %A, int %x) { + %B = sub int 0, %A + %C = sub int %x, %B + ret int %C +} + +int "test5"(int %A, int %B, int %C) { + %D = sub int %B, %C + %E = sub int %A, %D + ret int %E +} |

