diff options
Diffstat (limited to 'llvm/test/Transforms')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/2010-12-20-Reassociate.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstSimplify/2010-12-20-Reassociate.ll b/llvm/test/Transforms/InstSimplify/2010-12-20-Reassociate.ll index 87dfdda910b..03d5c33f872 100644 --- a/llvm/test/Transforms/InstSimplify/2010-12-20-Reassociate.ll +++ b/llvm/test/Transforms/InstSimplify/2010-12-20-Reassociate.ll @@ -62,3 +62,11 @@ define i32 @xor2(i32 %x, i32 %y) { ret i32 %l ; CHECK: ret i32 %y } + +define i32 @sub1(i32 %x, i32 %y) { +; CHECK: @sub1 + %d = sub i32 %x, %y + %r = sub i32 %x, %d + ret i32 %r +; CHECK: ret i32 %y +} |

