aboutsummaryrefslogtreecommitdiff
path: root/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-02-15 23:51:48 +0000
committerChris Lattner <sabre@nondot.org>2008-02-15 23:51:48 +0000
commit01042345c8889b7ffa5c28321850e91cb4e3b956 (patch)
tree08f9a6cc844c72eb6ece4536a2b3644308dee9a4 /test/Assembler/2004-03-07-FunctionAddressAlignment.ll
parentde7f560744072b4d7822e1901c2815c0b7a361f6 (diff)
rename llx -> ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47192 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2004-03-07-FunctionAddressAlignment.ll')
-rw-r--r--test/Assembler/2004-03-07-FunctionAddressAlignment.ll15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Assembler/2004-03-07-FunctionAddressAlignment.ll b/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
new file mode 100644
index 0000000000..909585cddf
--- /dev/null
+++ b/test/Assembler/2004-03-07-FunctionAddressAlignment.ll
@@ -0,0 +1,15 @@
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast
+; All of these should be eliminable
+
+
+int %foo() {
+ ret int and (int cast (int()* %foo to int), int 1)
+}
+
+int %foo2() {
+ ret int and (int 1, int cast (int()* %foo2 to int))
+}
+
+bool %foo3() {
+ ret bool cast (bool()* %foo3 to bool)
+}