summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
committerChris Lattner <sabre@nondot.org>2001-07-08 04:57:15 +0000
commit0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9 (patch)
treedcdecdda0cd3e1168527d832f3824e0c94b3ef60 /test
parentf22696f209701bff12edbe41c646d1ef179c685d (diff)
downloadllvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.gz
llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.bz2
llvm-0908309e3c4b4f423e88d8d8fe8060cb10eaa1c9.tar.xz
Neg instruction removed. Cast instruction implemented.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Feature/casttest.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Feature/casttest.ll b/test/Feature/casttest.ll
new file mode 100644
index 0000000000..5b2db7b488
--- /dev/null
+++ b/test/Feature/casttest.ll
@@ -0,0 +1,11 @@
+implementation
+
+short "FunFunc"(long %x, sbyte %z)
+begin
+bb0: ;;<label>
+ %cast110 = cast sbyte %z to short ;;<short>:(signed operands)
+ %cast10 = cast long %x to short ;;<short>
+ %reg109 = add short %cast110, %cast10 ;;<short>
+ ret short %reg109 ;;<void>
+end
+