summaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-09 04:54:18 +0000
committerChris Lattner <sabre@nondot.org>2005-05-09 04:54:18 +0000
commit2f2c3e43928f6a23f7ecf7d158d4b605e64db6b4 (patch)
tree8cc0c8a7fe23f9f027f250ee90679e5e53b049ff /test/Transforms
parent87bb7c61ac062ec70056a78910bcebb3e90d39b1 (diff)
downloadexternal_llvm-2f2c3e43928f6a23f7ecf7d158d4b605e64db6b4.zip
external_llvm-2f2c3e43928f6a23f7ecf7d158d4b605e64db6b4.tar.gz
external_llvm-2f2c3e43928f6a23f7ecf7d158d4b605e64db6b4.tar.bz2
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/InstCombine/and.ll9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll
index 81cd325..dce91d7 100644
--- a/test/Transforms/InstCombine/and.ll
+++ b/test/Transforms/InstCombine/and.ll
@@ -211,3 +211,12 @@ uint %test32(uint %In) {
%A = and uint %Z, 1
ret uint %A
}
+
+uint %test33(uint %b) { ;; Code corresponding to one-bit bitfield ^1.
+ %tmp.4.mask = and uint %b, 1
+ %tmp.10 = xor uint %tmp.4.mask, 1
+ %tmp.12 = and uint %b, 4294967294
+ %tmp.13 = or uint %tmp.12, %tmp.10
+ ret uint %tmp.13
+}
+