aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SystemZ/03-RetArgSubreg.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/SystemZ/03-RetArgSubreg.ll')
-rw-r--r--test/CodeGen/SystemZ/03-RetArgSubreg.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/SystemZ/03-RetArgSubreg.ll b/test/CodeGen/SystemZ/03-RetArgSubreg.ll
new file mode 100644
index 0000000..a31adbc
--- /dev/null
+++ b/test/CodeGen/SystemZ/03-RetArgSubreg.ll
@@ -0,0 +1,19 @@
+; RUN: llvm-as < %s | llc -march=systemz | grep lgr | count 2
+; RUN: llvm-as < %s | llc -march=systemz | grep nilf | count 1
+; RUN: llvm-as < %s | llc -march=systemz | grep lgfr | count 1
+
+
+define i32 @foo(i32 %a, i32 %b) {
+entry:
+ ret i32 %b
+}
+
+define i32 @foo1(i32 %a, i32 %b) zeroext {
+entry:
+ ret i32 %b
+}
+
+define i32 @foo2(i32 %a, i32 %b) signext {
+entry:
+ ret i32 %b
+}