diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-02-13 13:27:16 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-02-13 13:27:16 -0800 |
commit | dc91a56ebfd39c9a3f8c596dfe08e466fe7512be (patch) | |
tree | 5c5b7a1d1e0bb1a3ac23440aa9a3426d304f1891 /test | |
parent | 04faad37ba15e237c87e58e9914a998a3d7a2ed1 (diff) | |
parent | 6f629a513c37587247dc83b961e86c177cef5d6d (diff) |
Merge pull request #12 from sunfishcode/incoming
Don't leave behind unreachable blocks with illegal instructions.
Diffstat (limited to 'test')
-rw-r--r-- | test/Transforms/NaCl/expand-i64.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/NaCl/expand-i64.ll b/test/Transforms/NaCl/expand-i64.ll index 2997264058..df4804d19b 100644 --- a/test/Transforms/NaCl/expand-i64.ll +++ b/test/Transforms/NaCl/expand-i64.ll @@ -270,3 +270,16 @@ define i64 @sext(i32 %x) { %y = sext i32 %x to i64 ret i64 %y } + +; CHECK: define void @unreachable_blocks(i64* %p) { +; CHECK-NEXT: ret void +; CHECK-NEXT: } +define void @unreachable_blocks(i64* %p) { + ret void + +dead: + %t = load i64* %p + %s = add i64 %t, 1 + store i64 %s, i64* %p + ret void +} |