From a51752cbea5d57956f177470f463baeeee33f3d7 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Thu, 16 Jul 2009 13:42:31 +0000 Subject: Add bunch of 32-bit patterns... Uffff :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75926 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGen/SystemZ/03-RetArgSubreg.ll | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/CodeGen/SystemZ/03-RetArgSubreg.ll (limited to 'test/CodeGen/SystemZ/03-RetArgSubreg.ll') 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 +} -- cgit v1.1