diff options
author | Jeff Terrace <jterrace@gmail.com> | 2011-10-13 10:43:19 -0400 |
---|---|---|
committer | Jeff Terrace <jterrace@gmail.com> | 2011-10-13 10:43:19 -0400 |
commit | 8db994d1596ff691c2d603ebc6206bdfc73b2a4d (patch) | |
tree | ec5039d20cb6f5e89a6b1debad8738783029d919 /tests | |
parent | 51f9ca6e1c4ea9a164145e418f47374271e2f58a (diff) | |
parent | 3f227142c58c4a5543f6ba3f39ee35765304aa88 (diff) |
Merge branch 'master' of https://github.com/kripken/emscripten
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cases/complexphi.ll | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/cases/complexphi.ll b/tests/cases/complexphi.ll new file mode 100644 index 00000000..6f64af06 --- /dev/null +++ b/tests/cases/complexphi.ll @@ -0,0 +1,27 @@ +; ModuleID = '/dev/shm/tmp/src.cpp.o' +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-f80:32:32-n8:16:32" +target triple = "i386-pc-linux-gnu" + +@.str = private unnamed_addr constant [15 x i8] c"hello, world!\0A\00", align 1 ; [#uses=1 type=[15 x i8]*] + +; [#uses=0] +define i32 @main() { +entry: + %retval = alloca i32, align 4 ; [#uses=1 type=i32*] + %comp = alloca { i32, i32 }, align 4 ; [#uses=1] + store i32 0, i32* %retval + %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([15 x i8]* @.str, i32 0, i32 0)) ; [#uses=0 type=i32] [debug line = 5:13] + br label %cond.end + +cond.null: + br label %cond.end + +cond.end: ; preds = %cond.false, %cond.true + %cond = phi { i32, i32 } [ { i32 5, i32 6 }, %entry ], [ zeroinitializer, %cond.null ] ; [#uses=1] + store { i32, i32 } %cond, { i32, i32 }* %comp + ret i32 0 ; [debug line = 6:13] +} + +; [#uses=1] +declare i32 @printf(i8*, ...) + |