source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/Generic/call2-ret0.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 287 bytes
Line 
1; RUN: llc < %s
2
3define i32 @bar(i32 %x) {
4        ret i32 0
5}
6
7define i32 @foo(i32 %x) {
8        %q = call i32 @bar( i32 1 )             ; <i32> [#uses=1]
9        ret i32 %q
10}
11
12define i32 @main() {
13        %r = call i32 @foo( i32 2 )             ; <i32> [#uses=1]
14        ret i32 %r
15}
16
Note: See TracBrowser for help on using the repository browser.