summaryrefslogtreecommitdiffstats
path: root/llvm/test/Regression
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-30 18:44:09 +0000
committerChris Lattner <sabre@nondot.org>2005-08-30 18:44:09 +0000
commit2188b4363fd72d8232075d5be1d5aa6ec8e27c48 (patch)
treeba0c938e9da6ba6ab087ad1590bd51a7d10c982c /llvm/test/Regression
parent9f23ae226f65ed17915ad86f03f70a5f62fe241e (diff)
downloadbcm5719-llvm-2188b4363fd72d8232075d5be1d5aa6ec8e27c48.tar.gz
bcm5719-llvm-2188b4363fd72d8232075d5be1d5aa6ec8e27c48.zip
The dag isel misses both of these, the pattern isel just misses the second
one. TODO :) llvm-svn: 23156
Diffstat (limited to 'llvm/test/Regression')
-rw-r--r--llvm/test/Regression/CodeGen/PowerPC/and-imm.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Regression/CodeGen/PowerPC/and-imm.ll b/llvm/test/Regression/CodeGen/PowerPC/and-imm.ll
new file mode 100644
index 00000000000..3d5d08303ad
--- /dev/null
+++ b/llvm/test/Regression/CodeGen/PowerPC/and-imm.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'ori\|lis'
+; XFAIL: *
+
+int %test(int %X) {
+ %Y = and int %X, 32769 ; andi. r3, r3, 32769
+ ret int %Y
+}
+
+int %test2(int %X) {
+ %Y = and int %X, -2147418112 ; andis. r3, r3, 32769
+ ret int %Y
+}
+
OpenPOWER on IntegriCloud