Some templates of LLVM
[toypasc.git] / LLVM_reference / sub.txt
blob2f9af0140c8a7fb7decb03cd51928b434793d8a1
2 int add(int b,int c){
4    return (c - b) ;
5    
7 LLVM
8 ; ModuleID = '/tmp/webcompile/_23389_0.bc'
9 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-s0:0:64-f80:32:32"
10 target triple = "i686-pc-linux-gnu"
12 define i32 @add(i32 %b, i32 %c) {
13 entry:
14         %tmp3 = sub i32 %c, %b          ; <i32> [#uses=1]
15         ret i32 %tmp3