diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-03 02:11:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-03 02:11:28 +0000 |
commit | ba120aa5fa94f3d33afb33c63a43c3ff046a93b4 (patch) | |
tree | 53376ecfb9ac120faa2e18d0449b4526eae1ab70 /test/Bitcode | |
parent | 3d730f7453af5ecb1be4b8c5d48843ad5637de37 (diff) |
fix a bitcode reader bug where it can't handle extractelement correctly:
the index of the value being extracted is always an i32. This fixes PR3465
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63597 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Bitcode')
-rw-r--r-- | test/Bitcode/extractelement.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Bitcode/extractelement.ll b/test/Bitcode/extractelement.ll new file mode 100644 index 0000000000..04cb131f6e --- /dev/null +++ b/test/Bitcode/extractelement.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | opt -constprop | llvm-dis +; PR3465 + +define double @test() { + %tmp24 = extractelement <2 x double> bitcast (<1 x i128> < i128 85070591730234615870450834276742070272 > to <2 x double>), i32 0 + ret double %tmp24 +} + |