d71ba5a3822a414107933dca6d2951f29b0f4071
[oota-llvm.git] / test / CodeGen / PowerPC / 2006-07-19-stwbrx-crash.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
2
3 void %img2buf(int %symbol_size_in_bytes, ushort* %ui16) {
4         %tmp93 = load ushort* null              ; <ushort> [#uses=1]
5         %tmp99 = call ushort %llvm.bswap.i16( ushort %tmp93 )           ; <ushort> [#uses=1]
6         store ushort %tmp99, ushort* %ui16
7         ret void
8 }
9
10 declare ushort %llvm.bswap.i16(ushort)