projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8ead9e
)
add a testcase for a feature we regressed on because noone wrote the test! :(
author
Chris Lattner
<sabre@nondot.org>
Wed, 28 Sep 2005 23:03:11 +0000
(23:03 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 28 Sep 2005 23:03:11 +0000
(23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23513
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/PowerPC/fold-li.ll
[new file with mode: 0644]
patch
|
blob
diff --git a/test/CodeGen/PowerPC/fold-li.ll
b/test/CodeGen/PowerPC/fold-li.ll
new file mode 100644
(file)
index 0000000..
725f1d4
--- /dev/null
+++ b/
test/CodeGen/PowerPC/fold-li.ll
@@ -0,0
+1,14
@@
+; RUN: llvm-as < %s | llc -march=ppc32 &&
+; RUN: llvm-as < %s | llc -march=ppc32 | grep -v align | not grep li
+
+;; Test that immediates are folded into these instructions correctly.
+
+int %ADD(int %X) {
+ %Y = add int %X, 65537
+ ret int %Y
+}
+
+int %SUB(int %X) {
+ %Y = sub int %X, 65537
+ ret int %Y
+}