1*c28b0b9dSNikita Popov; RUN: llvm-dis -opaque-pointers=0 < %s.bc| FileCheck %s 2*c28b0b9dSNikita Popov; RUN: llvm-dis -opaque-pointers=1 < %s.bc| FileCheck %s 3c8eccd11SDuncan P. N. Exon Smith; RUN: verify-uselistorder < %s.bc 49201fb9cSMichael Kuperstein 59201fb9cSMichael Kuperstein; aggregateOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2. 69201fb9cSMichael Kuperstein; The test checks that LLVM does not misread instructions with aggregate operands 79201fb9cSMichael Kuperstein; in older bitcode files. 89201fb9cSMichael Kuperstein 99201fb9cSMichael Kupersteindefine void @extractvalue([4 x i8] %x1, [4 x [4 x i8]] %x2, {{i32, float}} %x3){ 109201fb9cSMichael Kupersteinentry: 119201fb9cSMichael Kuperstein; CHECK: %res1 = extractvalue [4 x i8] %x1, 0 129201fb9cSMichael Kuperstein %res1 = extractvalue [4 x i8] %x1, 0 139201fb9cSMichael Kuperstein 149201fb9cSMichael Kuperstein; CHECK-NEXT: %res2 = extractvalue [4 x [4 x i8]] %x2, 1 159201fb9cSMichael Kuperstein %res2 = extractvalue [4 x [4 x i8 ]] %x2, 1 169201fb9cSMichael Kuperstein 179201fb9cSMichael Kuperstein; CHECK-NEXT: %res3 = extractvalue [4 x [4 x i8]] %x2, 0, 1 189201fb9cSMichael Kuperstein %res3 = extractvalue [4 x [4 x i8 ]] %x2, 0, 1 199201fb9cSMichael Kuperstein 209201fb9cSMichael Kuperstein; CHECK-NEXT: %res4 = extractvalue { { i32, float } } %x3, 0, 1 219201fb9cSMichael Kuperstein %res4 = extractvalue {{i32, float}} %x3, 0, 1 229201fb9cSMichael Kuperstein 239201fb9cSMichael Kuperstein ret void 249201fb9cSMichael Kuperstein} 259201fb9cSMichael Kuperstein 269201fb9cSMichael Kupersteindefine void @insertvalue([4 x [4 x i8 ]] %x1){ 279201fb9cSMichael Kupersteinentry: 289201fb9cSMichael Kuperstein; CHECK: %res1 = insertvalue [4 x [4 x i8]] %x1, i8 0, 0, 0 299201fb9cSMichael Kuperstein %res1 = insertvalue [4 x [4 x i8 ]] %x1, i8 0, 0, 0 309201fb9cSMichael Kuperstein 319201fb9cSMichael Kuperstein; CHECK-NEXT: %res2 = insertvalue [4 x [4 x i8]] undef, i8 0, 0, 0 329201fb9cSMichael Kuperstein %res2 = insertvalue [4 x [4 x i8 ]] undef, i8 0, 0, 0 339201fb9cSMichael Kuperstein 349201fb9cSMichael Kuperstein ret void 359201fb9cSMichael Kuperstein} 36