mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
a1d10f171e
This patch includes all missing functionality needed to provide first compilation of a simple program that just returns from a function. I've added a test case that checks for "ret" instruction printed in assembly output. Patch by Andrei Grischenko (andrei.l.grischenko@intel.com) Differential revision: https://reviews.llvm.org/D39688 llvm-svn: 320035
10 lines
193 B
LLVM
10 lines
193 B
LLVM
; This tests that llc generates 'ret' instruction in assembly output.
|
|
|
|
; RUN: llc < %s -march=nios2 2>&1 | FileCheck %s --check-prefix=ARCH
|
|
|
|
; ARCH: ret
|
|
|
|
define i32 @f(i32 %i) {
|
|
ret i32 %i
|
|
}
|