read a few instructions, fix some bugs. This is enough to be able to round
authorChris Lattner <sabre@nondot.org>
Wed, 2 May 2007 04:27:25 +0000 (04:27 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 2 May 2007 04:27:25 +0000 (04:27 +0000)
commit231cbcb35b48530aef305c76de1583c0b5dfc7ce
treea8aa7a222ed1080165ed9346399dffa991271143
parentf639875cd73902a29bc222d520cc0c45d379d137
read a few instructions, fix some bugs.  This is enough to be able to round
trip function bodies like this:

define <2 x i64> @foo(<2 x i64> %x, <2 x i64> %y) {
        %tmp4 = bitcast <2 x i64> %y to <8 x i16>               ; <<8 x i16>> [#uses=1]
        %tmp5 = bitcast <2 x i64> %x to <8 x i16>               ; <<8 x i16>> [#uses=1]
        %tmp = add <8 x i16> %tmp5, %tmp4               ; <<8 x i16>> [#uses=1]
        %tmp6 = bitcast <8 x i16> %tmp to <2 x i64>             ; <<2 x i64>> [#uses=1]
        ret <2 x i64> %tmp6
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Reader/BitcodeReader.cpp