summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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
+