diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-27 19:13:16 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-27 19:13:16 +0000 |
commit | f9be95f867745b6754b2402b9b72f9eaeabd637f (patch) | |
tree | 1f51be80a5e575555d713f49a374c10bf298e96c /test/Feature | |
parent | 76b39e88e470171292850d8cebc5d54227b43883 (diff) | |
download | external_llvm-f9be95f867745b6754b2402b9b72f9eaeabd637f.zip external_llvm-f9be95f867745b6754b2402b9b72f9eaeabd637f.tar.gz external_llvm-f9be95f867745b6754b2402b9b72f9eaeabd637f.tar.bz2 |
add enough support for indirect branch for the feature test to pass
(assembler,asmprinter, bc reader+writer) and document it. Codegen
currently aborts on it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r-- | test/Feature/terminators.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Feature/terminators.ll b/test/Feature/terminators.ll index 417f56b..d1b9710 100644 --- a/test/Feature/terminators.ll +++ b/test/Feature/terminators.ll @@ -24,3 +24,14 @@ Case4: ; preds = %0 ret i32 16 } + + +define i32 @indbrtest(i8* %P, i32* %Q) { + indbr i8* %P, [label %BB1, label %BB2, label %BB3] +BB1: + indbr i32* %Q, [] +BB2: + indbr i32* %Q, [label %BB1, label %BB2] +BB3: + ret i32 2 +} |