19201fb9cSMichael Kuperstein; RUN: llvm-dis < %s.bc| FileCheck %s 2*c8eccd11SDuncan P. N. Exon Smith; RUN: verify-uselistorder < %s.bc 39201fb9cSMichael Kuperstein 49201fb9cSMichael Kuperstein; vectorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2. 59201fb9cSMichael Kuperstein; The test checks that LLVM does not misread vector operations of 69201fb9cSMichael Kuperstein; older bitcode files. 79201fb9cSMichael Kuperstein 89201fb9cSMichael Kupersteindefine void @extractelement(<2 x i8> %x1){ 99201fb9cSMichael Kupersteinentry: 109201fb9cSMichael Kuperstein; CHECK: %res1 = extractelement <2 x i8> %x1, i32 0 119201fb9cSMichael Kuperstein %res1 = extractelement <2 x i8> %x1, i32 0 129201fb9cSMichael Kuperstein 139201fb9cSMichael Kuperstein ret void 149201fb9cSMichael Kuperstein} 159201fb9cSMichael Kuperstein 169201fb9cSMichael Kupersteindefine void @insertelement(<2 x i8> %x1){ 179201fb9cSMichael Kupersteinentry: 189201fb9cSMichael Kuperstein; CHECK: %res1 = insertelement <2 x i8> %x1, i8 0, i32 0 199201fb9cSMichael Kuperstein %res1 = insertelement <2 x i8> %x1, i8 0, i32 0 209201fb9cSMichael Kuperstein 219201fb9cSMichael Kuperstein ret void 229201fb9cSMichael Kuperstein} 239201fb9cSMichael Kuperstein 249201fb9cSMichael Kupersteindefine void @shufflevector(<2 x i8> %x1){ 259201fb9cSMichael Kupersteinentry: 269201fb9cSMichael Kuperstein; CHECK: %res1 = shufflevector <2 x i8> %x1, <2 x i8> %x1, <2 x i32> <i32 0, i32 1> 279201fb9cSMichael Kuperstein %res1 = shufflevector <2 x i8> %x1, <2 x i8> %x1, <2 x i32> <i32 0, i32 1> 289201fb9cSMichael Kuperstein 299201fb9cSMichael Kuperstein; CHECK-NEXT: %res2 = shufflevector <2 x i8> %x1, <2 x i8> undef, <2 x i32> <i32 0, i32 1> 309201fb9cSMichael Kuperstein %res2 = shufflevector <2 x i8> %x1, <2 x i8> undef, <2 x i32> <i32 0, i32 1> 319201fb9cSMichael Kuperstein 329201fb9cSMichael Kuperstein ret void 339201fb9cSMichael Kuperstein} 34