diff options
author | Chris Lattner <sabre@nondot.org> | 2005-09-18 04:22:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-09-18 04:22:59 +0000 |
commit | dc0ffccb1931e700601caed1b2f9e6308c716c4d (patch) | |
tree | 777f5bc3a1dc85603bd0a615637477a38057533f /test | |
parent | 3255bd101dc214414f5668ee75a916eab66c3d18 (diff) | |
download | llvm-dc0ffccb1931e700601caed1b2f9e6308c716c4d.tar.gz llvm-dc0ffccb1931e700601caed1b2f9e6308c716c4d.tar.bz2 llvm-dc0ffccb1931e700601caed1b2f9e6308c716c4d.tar.xz |
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/InstCombine/add.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index f06109342c..8a84863c2e 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -196,3 +196,13 @@ int %test28(int %X) { %Z = sub int 42, %Y ret int %Z } + +uint %test29(uint %X, uint %x) { + %tmp.2 = sub uint %X, %x + %tmp.2.mask = and uint %tmp.2, 63 ; <uint> [#uses=1] + %tmp.6 = add uint %tmp.2.mask, %x ; <uint> [#uses=1] + %tmp.7 = and uint %tmp.6, 63 ; <uint> [#uses=1] + %tmp.9 = and uint %tmp.2, 4294967232 ; <uint> [#uses=1] + %tmp.10 = or uint %tmp.7, %tmp.9 ; <uint> [#uses=1] + ret uint %tmp.10 +} |