mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
20 lines
428 B
LLVM
20 lines
428 B
LLVM
|
; RUN: llvm-link %s -override %S/Inputs/override.ll -S | FileCheck %s
|
||
|
; RUN: llvm-link -override %S/Inputs/override.ll %s -S | FileCheck %s
|
||
|
|
||
|
|
||
|
; CHECK-LABEL: define i32 @foo
|
||
|
; CHECK-NEXT: entry:
|
||
|
; CHECK-NEXT: ret i32 4
|
||
|
define i32 @foo(i32 %i) {
|
||
|
entry:
|
||
|
%add = add nsw i32 %i, %i
|
||
|
ret i32 %add
|
||
|
}
|
||
|
|
||
|
; Function Attrs: nounwind ssp uwtable
|
||
|
define i32 @main(i32 %argc, i8** %argv) {
|
||
|
entry:
|
||
|
%a = call i32 @foo(i32 2)
|
||
|
ret i32 %a
|
||
|
}
|