1 ; RUN: llvm-dis < %s.bc| FileCheck %s
\r
3 ; vectorOperations.3.2.ll.bc was generated by passing this file to llvm-as-3.2.
\r
4 ; The test checks that LLVM does not misread vector operations of
\r
5 ; older bitcode files.
\r
7 define void @extractelement(<2 x i8> %x1){
\r
9 ; CHECK: %res1 = extractelement <2 x i8> %x1, i32 0
\r
10 %res1 = extractelement <2 x i8> %x1, i32 0
\r
15 define void @insertelement(<2 x i8> %x1){
\r
17 ; CHECK: %res1 = insertelement <2 x i8> %x1, i8 0, i32 0
\r
18 %res1 = insertelement <2 x i8> %x1, i8 0, i32 0
\r
23 define void @shufflevector(<2 x i8> %x1){
\r
25 ; CHECK: %res1 = shufflevector <2 x i8> %x1, <2 x i8> %x1, <2 x i32> <i32 0, i32 1>
\r
26 %res1 = shufflevector <2 x i8> %x1, <2 x i8> %x1, <2 x i32> <i32 0, i32 1>
\r
28 ; CHECK-NEXT: %res2 = shufflevector <2 x i8> %x1, <2 x i8> undef, <2 x i32> <i32 0, i32 1>
\r
29 %res2 = shufflevector <2 x i8> %x1, <2 x i8> undef, <2 x i32> <i32 0, i32 1>
\r