aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Thumb2
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-07-14 00:57:56 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-07-14 00:57:56 +0000
commitf354d36027f21554f43b365cd07cf965a7687096 (patch)
tree2f3e9b83a10b99dca3a332a9ff4f0c5d62cc772a /test/CodeGen/Thumb2
parentbd760a50153e3f543e5ccf0d5d6a34e3a33bd88e (diff)
downloadexternal_llvm-f354d36027f21554f43b365cd07cf965a7687096.zip
external_llvm-f354d36027f21554f43b365cd07cf965a7687096.tar.gz
external_llvm-f354d36027f21554f43b365cd07cf965a7687096.tar.bz2
Fix detection of valid BFC immediates.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
-rw-r--r--test/CodeGen/Thumb2/thumb2-bfc.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/Thumb2/thumb2-bfc.ll b/test/CodeGen/Thumb2/thumb2-bfc.ll
index 1e5016c..a612b9b 100644
--- a/test/CodeGen/Thumb2/thumb2-bfc.ll
+++ b/test/CodeGen/Thumb2/thumb2-bfc.ll
@@ -17,3 +17,9 @@ define i32 @f3(i32 %a) {
%tmp = and i32 %a, 4095
ret i32 %tmp
}
+
+; 2147483646 = 0x7ffffffe not implementable w/ BFC
+define i32 @f4(i32 %a) {
+ %tmp = and i32 %a, 2147483646
+ ret i32 %tmp
+}